#include "sqpcheader.h"
#include <math.h>
#include <stdlib.h>
#include "sqopcodes.h"
#include "sqfuncproto.h"
#include "sqvm.h"
#include "sqclosure.h"
#include "sqstring.h"
#include "sqtable.h"
#include "squserdata.h"
#include "sqarray.h"
#include "sqclass.h"
Go to the source code of this file.
|
#define | TOP() (_stack._vals[_top-1]) |
|
#define | CLEARSTACK(_last_top) { if((_last_top) >= _top) ClearStack(_last_top); } |
|
#define | _RET_SUCCEED(exp) { result = (exp); return true; } |
|
#define | _RET_ON_FAIL(exp) { if(!exp) return false; } |
|
#define | arg0 (_i_._arg0) |
|
#define | arg1 (_i_._arg1) |
|
#define | sarg1 (*((SQInt32 *)&_i_._arg1)) |
|
#define | arg2 (_i_._arg2) |
|
#define | arg3 (_i_._arg3) |
|
#define | sarg3 ((SQInteger)*((signed char *)&_i_._arg3)) |
|
#define | _FINISH(howmuchtojump) {jump = howmuchtojump; return true; } |
|
#define | COND_LITERAL (arg3!=0?ci->_literals[arg1]:STK(arg1)) |
|
#define | _GUARD(exp) { if(!exp) { Raise_Error(_lasterror); SQ_THROW();} } |
|
#define | SQ_THROW() { goto exception_trap; } |
|
◆ _FINISH
#define _FINISH |
( |
|
howmuchtojump | ) |
{jump = howmuchtojump; return true; } |
◆ _GUARD
#define _GUARD |
( |
|
exp | ) |
{ if(!exp) { Raise_Error(_lasterror); SQ_THROW();} } |
◆ _RET_ON_FAIL
#define _RET_ON_FAIL |
( |
|
exp | ) |
{ if(!exp) return false; } |
◆ _RET_SUCCEED
#define _RET_SUCCEED |
( |
|
exp | ) |
{ result = (exp); return true; } |
◆ arg0
◆ arg1
◆ arg2
◆ arg3
◆ CLEARSTACK
#define CLEARSTACK |
( |
|
_last_top | ) |
{ if((_last_top) >= _top) ClearStack(_last_top); } |
◆ COND_LITERAL
#define COND_LITERAL (arg3!=0?ci->_literals[arg1]:STK(arg1)) |
◆ sarg1
#define sarg1 (*((SQInt32 *)&_i_._arg1)) |
◆ sarg3
#define sarg3 ((SQInteger)*((signed char *)&_i_._arg3)) |
◆ SQ_THROW
#define SQ_THROW |
( |
| ) |
{ goto exception_trap; } |
◆ TOP
#define TOP |
( |
| ) |
(_stack._vals[_top-1]) |
◆ g_InstrDesc
SQInstructionDesc g_InstrDesc[] |