252
edits
(→sort()) |
|||
Line 142: | Line 142: | ||
|syntax = caller([level]); | |syntax = caller([level]); | ||
|source = {{simgear file|simgear/nasal/lib.c|l=404|t=Source}} | |source = {{simgear file|simgear/nasal/lib.c|l=404|t=Source}} | ||
|text = Returns a vector containing a record from the current call stack. The level numbering starts from the currently executing function (level 0). Level 1 (the default) is the caller of the current function, and so on. | |text = Returns a vector containing a record from the current call stack. The level numbering starts from the currently executing function (level 0). Level 1 (the default) is the caller of the current function, and so on. | ||
The result is a four-element vector containing a hash of local variables, the function object, the source, and the line number. | |||
|param1 = level | |param1 = level | ||
|param1text = Optional integer specifying the stack level to return a result from. Defaults to 1 (i.e. the caller of the currently executing function). | |param1text = Optional integer specifying the stack level to return a result from. Defaults to 1 (i.e. the caller of the currently executing function). |
edits