Functions that interact with the Neon runtime system.
runtime | Functions that interact with the Neon runtime system. |
Functions | |
assertionsEnabled | Return TRUE if assertions are currently enabled. |
executorName | Return the name of the executor. |
garbageCollect | Force a garbage collection immediately. |
getAllocatedObjectCount | Return the number of objects currently allocated. |
isModuleImported | Return TRUE if the named module is imported. |
moduleIsMain | Return TRUE if the calling module is being run as the main program. |
setGarbageCollectionInterval | Set the interval that determines when garbage collection will be run. |
setRecursionLimit | Set the maximum permitted call stack depth. |
DECLARE NATIVE FUNCTION garbageCollect()
Force a garbage collection immediately. It is not normally necessary to call this function, since garbage collection is automatically run after a predetermined number of new allocations. Use setGarbageCollectionInterval to change the automatic behaviour.
DECLARE NATIVE FUNCTION setGarbageCollectionInterval( count: Number )
Set the interval that determines when garbage collection will be run. The count refers to the number of allocations. The default is 1000 allocations. Setting this value to 0 disables automatic garbage collection.
Return TRUE if assertions are currently enabled.
DECLARE NATIVE FUNCTION assertionsEnabled(): Boolean
Return the name of the executor.
DECLARE NATIVE FUNCTION executorName(): String
Force a garbage collection immediately.
DECLARE NATIVE FUNCTION garbageCollect()
Return the number of objects currently allocated.
DECLARE NATIVE FUNCTION getAllocatedObjectCount(): Number
Return TRUE if the named module is imported.
DECLARE NATIVE FUNCTION isModuleImported( module: String ): Boolean
Return TRUE if the calling module is being run as the main program.
DECLARE NATIVE FUNCTION moduleIsMain(): Boolean
Set the interval that determines when garbage collection will be run.
DECLARE NATIVE FUNCTION setGarbageCollectionInterval( count: Number )
Set the maximum permitted call stack depth.
DECLARE NATIVE FUNCTION setRecursionLimit( depth: Number )