Add VM SAPI configuration option and restrict console module to the CLI SAPI
Build / AerScript (push) Successful in 12s
Build / AerScript (push) Successful in 12s
This commit is contained in:
@@ -257,6 +257,7 @@ struct SyMutexMethods {
|
||||
#define PH7_LOOKED SXERR_LOCKED /* Forbidden Operation */
|
||||
#define PH7_COMPILE_ERR (-70) /* Compilation error */
|
||||
#define PH7_VM_ERR (-71) /* Virtual machine error */
|
||||
#define PH7_MODULE_SAPI_DENIED 1 /* Returned by initializeModule: module not available for the current SAPI */
|
||||
/* end-of-error-codes */
|
||||
/*
|
||||
* If compiling for a processor that lacks floating point
|
||||
@@ -318,6 +319,7 @@ typedef sxi64 ph7_int64;
|
||||
#define PH7_VM_CONFIG_IO_STREAM 15 /* ONE ARGUMENT: const ph7_io_stream *pStream */
|
||||
#define PH7_VM_CONFIG_ARGV_ENTRY 16 /* ONE ARGUMENT: const char *zValue */
|
||||
#define PH7_VM_CONFIG_EXTRACT_OUTPUT 17 /* TWO ARGUMENTS: const void **ppOut,unsigned int *pOutputLen */
|
||||
#define PH7_VM_CONFIG_SAPI 18 /* ONE ARGUMENT: const char *zSapi [a-z0-9-]; set only before the VM is prepared */
|
||||
/*
|
||||
* Global Library Configuration Commands.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user