Code::Blocks  SVN r11506
Macros | Variables
sqvm.cpp File Reference
#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"
Include dependency graph for sqvm.cpp:

Go to the source code of this file.

Macros

#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; }
 

Variables

SQInstructionDesc g_InstrDesc []
 

Macro Definition Documentation

◆ _FINISH

#define _FINISH (   howmuchtojump)    {jump = howmuchtojump; return true; }

Definition at line 478 of file sqvm.cpp.

◆ _GUARD

#define _GUARD (   exp)    { if(!exp) { Raise_Error(_lasterror); SQ_THROW();} }

Definition at line 556 of file sqvm.cpp.

◆ _RET_ON_FAIL

#define _RET_ON_FAIL (   exp)    { if(!exp) return false; }

Definition at line 428 of file sqvm.cpp.

◆ _RET_SUCCEED

#define _RET_SUCCEED (   exp)    { result = (exp); return true; }

Definition at line 176 of file sqvm.cpp.

◆ arg0

#define arg0   (_i_._arg0)

◆ arg1

#define arg1   (_i_._arg1)

Definition at line 457 of file sqvm.cpp.

Referenced by DumpLiteral().

◆ arg2

#define arg2   (_i_._arg2)

Definition at line 459 of file sqvm.cpp.

Referenced by DumpLiteral().

◆ arg3

#define arg3   (_i_._arg3)

Definition at line 460 of file sqvm.cpp.

Referenced by DumpLiteral().

◆ CLEARSTACK

#define CLEARSTACK (   _last_top)    { if((_last_top) >= _top) ClearStack(_last_top); }

Definition at line 19 of file sqvm.cpp.

◆ COND_LITERAL

#define COND_LITERAL   (arg3!=0?ci->_literals[arg1]:STK(arg1))

Definition at line 554 of file sqvm.cpp.

◆ sarg1

#define sarg1   (*((SQInt32 *)&_i_._arg1))

Definition at line 458 of file sqvm.cpp.

◆ sarg3

#define sarg3   ((SQInteger)*((signed char *)&_i_._arg3))

Definition at line 461 of file sqvm.cpp.

◆ SQ_THROW

#define SQ_THROW ( )    { goto exception_trap; }

Definition at line 558 of file sqvm.cpp.

◆ TOP

#define TOP ( )    (_stack._vals[_top-1])

Definition at line 17 of file sqvm.cpp.

Variable Documentation

◆ g_InstrDesc

SQInstructionDesc g_InstrDesc[]

Referenced by DumpLiteral().