![]() |
Phasor 2.2.0
Stack VM based Programming Language
|
#include <stddef.h>Go to the source code of this file.
Macros | |
| #define | PHASOR_API |
Functions | |
| PHASOR_API void | exec (const unsigned char embeddedBytecode[], size_t embeddedBytecodeSize, const char *moduleName, const void *nativeFunctionsVector, const int argc, const char **argv) |
| Executes pre-compiled Phasor bytecode. | |
| PHASOR_API void | jitExec (const char *script, const char *moduleName, const void *nativeFunctionsVector) |
| Executes a Phasor script using Just-In-Time (JIT) compilation. | |
| PHASOR_API void | executeScript (void *vm, const char *script) |
| Executes a Phasor script within an existing VM instance. | |
| #define PHASOR_API |
Definition at line 19 of file PhasorRT.h.
| PHASOR_API void exec | ( | const unsigned char | embeddedBytecode[], |
| size_t | embeddedBytecodeSize, | ||
| const char * | moduleName, | ||
| const void * | nativeFunctionsVector, | ||
| const int | argc, | ||
| const char ** | argv ) |
Executes pre-compiled Phasor bytecode.
| embeddedBytecode | An array of unsigned chars containing the Phasor bytecode. |
| embeddedBytecodeSize | The size of the bytecode array. |
| moduleName | The name of the module, used for error reporting. |
| nativeFunctionsVector | A pointer to a vector of pairs, where each pair contains a function name and a function pointer. |
| argc | The number of command-line arguments. |
| argv | An array of strings representing the command-line arguments. |
Definition at line 37 of file NativeRuntime_library.cpp.
| PHASOR_API void executeScript | ( | void * | vm, |
| const char * | script ) |
Executes a Phasor script within an existing VM instance.
| vm | A pointer to the Phasor VM instance. |
| script | A string containing the Phasor script to execute. |
Definition at line 97 of file NativeRuntime_library.cpp.
| PHASOR_API void jitExec | ( | const char * | script, |
| const char * | moduleName, | ||
| const void * | nativeFunctionsVector ) |
Executes a Phasor script using Just-In-Time (JIT) compilation.
| script | A string containing the Phasor script to execute. |
| moduleName | The name of the module, used for error reporting. |
| nativeFunctionsVector | A pointer to a vector of pairs, where each pair contains a function name and a function pointer. |
Definition at line 68 of file NativeRuntime_library.cpp.