X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibspiderscript.so_src%2Fbytecode_gen.c;h=b089b9aec38e37aad713d4dbbaab774d53b30282;hb=a01827f4eeade250266325ce61f829175de2dba8;hp=54835aea496905a350b7ee9fb9f8bd2563ac6d20;hpb=d5540392ca476276630775b5bfd6e4b4b198239e;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libspiderscript.so_src/bytecode_gen.c b/Usermode/Libraries/libspiderscript.so_src/bytecode_gen.c index 54835aea..b089b9ae 100644 --- a/Usermode/Libraries/libspiderscript.so_src/bytecode_gen.c +++ b/Usermode/Libraries/libspiderscript.so_src/bytecode_gen.c @@ -395,6 +395,8 @@ void Bytecode_AppendCast(tBC_Function *Handle, int Type) DEF_BC_INT(BC_OP_CAST, Type) void Bytecode_AppendDuplicate(tBC_Function *Handle) DEF_BC_NONE(BC_OP_DUPSTACK); +void Bytecode_AppendDelete(tBC_Function *Handle) + DEF_BC_NONE(BC_OP_DELSTACK); // Does some bookeeping to allocate variable slots at compile time void Bytecode_AppendEnterContext(tBC_Function *Handle) @@ -414,7 +416,7 @@ void Bytecode_AppendLeaveContext(tBC_Function *Handle) Handle->CurContextDepth --; Handle->VariableCount = i; - DEF_BC_NONE(BC_OP_LEAVECONTEXT) + DEF_BC_NONE(BC_OP_LEAVECONTEXT); } //void Bytecode_AppendImportNamespace(tBC_Function *Handle, const char *Name); // DEF_BC_STRINT(BC_OP_IMPORTNS, Name, 0)