t3.hfile | source file |
Classes Summary | Functions Summary Details | Macros Summary Details | Enums Summary Details | Templates Summary Details |
This header defines the t3vm intrinsic function set. These functions provide access to basic features of the Virtual Machine.
t3AllocProp
t3DebugTrace
t3GetGlobalSymbols
t3GetStackTrace
t3GetVMBanner
t3GetVMID
t3GetVMPreinitMode
t3GetVMVsn
t3RunGC
t3SetSay
T3_H
T3DebugBreak
T3DebugCheck
T3SetSayNoFunc
T3SetSayNoMethod
t3AllocProp ( ) | t3.h[129] |
t3DebugTrace (mode, ...) | t3.h[97] |
T3DebugCheck - checks to see if an interactive debugger is present. No additional arguments; returns true if a debugger is present, nil if not.
T3DebugBreak - breaks into the interactive debugger, pausing execution at the current code location so that the user can inspect the current machine state and determine how to proceed. No additional arguments; after the user proceeds with execution, the function returns true to indicate that a debugger is present. If no debugger is present, the function simply returns nil, and has no other effect.
t3GetGlobalSymbols ( ) | t3.h[120] |
This call will return a valid object value when pre-initialization is running during program building, or when the program has been compiled for debugging. When a program compiled for release (i.e., no debug information) is run under the interpreter, this will return nil, because no symbol information is available.
Note that programs can, if they wish, get a reference to this object during pre-initialization, then keep the reference (by storing it in an object property, for example) so that it is available during normal execution under the interpreter. If the program is compiled for release, and it does not keep a reference in this manner, the garbage collector will automatically delete the object when pre-initialization is completed. This allows programs that wish to keep the symbol information around at run-time to do so, while not burdening programs that don't need the information with the extra memory the symbols consume.
t3GetStackTrace (level?) | t3.h[143] |
If 'level' is specified, we'll return a single T3StackInfo object giving the context at the given stack level - 1 is the active level, 2 is its caller, and so on, so 'level' would simply be the index in the returned list when this argument is omitted.
t3GetVMBanner ( ) | t3.h[70] |
t3GetVMID ( ) | t3.h[63] |
t3GetVMPreinitMode ( ) | t3.h[77] |
t3GetVMVsn ( ) | t3.h[57] |
t3RunGC ( ) | t3.h[34] |
t3SetSay (val) | t3.h[48] |
The special values T3SetSayNoFunc and T3SetSayNoMethod can be passed to the function to remove any existing function or method, respectively, and are returned when appropriate to indicate that there was no previous setting.
T3_H | t3.h[17] |
T3DebugBreak | t3.h[154] |
2
T3DebugCheck | t3.h[151] |
1
T3SetSayNoFunc | t3.h[161] |
1
T3SetSayNoMethod | t3.h[162] |
2
(none)