#include "CentumSharedCode.h"
#include <stdio.h>
Include dependency graph for CScope.cpp:
Functions | |
CENTUMSHAREDCODE_API void | AddCScopeReference (CScope *scope) |
This function increases the reference count of the scope by one. | |
CENTUMSHAREDCODE_API void | ReleaseCScope (CScope *scope) |
This function decreases the reference count of the scope by one. | |
CENTUMSHAREDCODE_API ExecutionReturn | CallFunction (CScope *caller, CThing *func, CThingStack *params, CThingStack *usings) |
This function calls a rebi and returns the results of its execution. | |
CENTUMSHAREDCODE_API ExecutionReturn | ExecuteByteCode (CScope *scope) |
This function executes the current byte code command for the scope. |
|
This function increases the reference count of the scope by one.
|
|
This function calls a rebi and returns the results of its execution. Passing NULL as the rebi is an error. If either the parameters to this function or the usings are NULL than an empty stack is used in their place (so passing them as NULL is safe). Then an ExecuteByteCode loop is entered until the result of the byte code execution is not EXEC_NORMAL. Finally the last non- EXEC_NORMAL return value is readied for being returned by the use of the CleanReturnValue function, and then it is returned.
|
|
This function executes the current byte code command for the scope. If the current code position is greater than the length of the bytecode for the scope than a sub-stack is taken off the interal localstack and returned with a value of EXEC_RETURN. Otherwise the 5 bytes of the bytecode are read, the first byte being the ident.
|
|
This function decreases the reference count of the scope by one. If the reference count of the scope reaches zero than it is destroyed and its memory is released.
|