Compile Aer code or chunk of code.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
f9946e9842
commit
039fde099f
|
@ -8800,7 +8800,7 @@ static int vm_builtin_assert(ph7_context *pCtx, int nArg, ph7_value **apArg) {
|
|||
SyString sChunk;
|
||||
SyStringInitFromBuf(&sChunk, SyBlobData(&pAssert->sBlob), SyBlobLength(&pAssert->sBlob));
|
||||
if(sChunk.nByte > 0) {
|
||||
VmEvalChunk(pVm, pCtx, &sChunk, PH7_AERSCRIPT_CODE | PH7_AERSCRIPT_EXPR);
|
||||
VmEvalChunk(pVm, pCtx, &sChunk, PH7_AERSCRIPT_CHNK | PH7_AERSCRIPT_EXPR);
|
||||
/* Extract evaluation result */
|
||||
iResult = ph7_value_to_bool(pCtx->pRet);
|
||||
} else {
|
||||
|
@ -10299,7 +10299,7 @@ static int vm_builtin_eval(ph7_context *pCtx, int nArg, ph7_value **apArg) {
|
|||
return SXRET_OK;
|
||||
}
|
||||
/* Eval the chunk */
|
||||
VmEvalChunk(pCtx->pVm, &(*pCtx), &sChunk, PH7_AERSCRIPT_CODE);
|
||||
VmEvalChunk(pCtx->pVm, &(*pCtx), &sChunk, PH7_AERSCRIPT_CHNK);
|
||||
return SXRET_OK;
|
||||
}
|
||||
/*
|
||||
|
|
|
@ -422,14 +422,14 @@ typedef sxi64 ph7_int64;
|
|||
#define PH7_LIB_CONFIG_VFS 6 /* ONE ARGUMENT: const ph7_vfs *pVfs */
|
||||
/*
|
||||
* Compile-time flags.
|
||||
* The new compile interfaces [ph7_compile_v2()] and [ph7_compile_file()] takes
|
||||
* as their last argument zero or more combination of compile time flags.
|
||||
* These flags are used to control the behavior of the PH7 compiler while
|
||||
*
|
||||
* VmEvalChunk and PH7_CompileAerScript takes iFlags argument
|
||||
* which controls the behavior of the PH7 Engine while
|
||||
* processing the input.
|
||||
* Refer to the official documentation for additional information.
|
||||
*/
|
||||
#define PH7_AERSCRIPT_CODE 0x01 /* PHP Block of Code */
|
||||
#define PH7_AERSCRIPT_EXPR 0x02 /* PHP Simple Expression */
|
||||
#define PH7_AERSCRIPT_CODE 0x01 /* AerScript Code */
|
||||
#define PH7_AERSCRIPT_CHNK 0x02 /* AerScript Chunk of Code */
|
||||
#define PH7_AERSCRIPT_EXPR 0x04 /* AerScript Expression */
|
||||
/*
|
||||
* Call Context Error Message Severity Level.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue