Add new member to SQVM struct

'_nnativecalls' used in 'SQVM::CallNative()' [r5apex.exe+10A05F0].
This commit is contained in:
Kawe Mazidjatari 2022-07-03 15:57:58 +02:00
parent 6a90314fc1
commit b075977dd7
2 changed files with 13 additions and 0 deletions

View File

@ -6,6 +6,14 @@
#define SQ_FAILED(res) (res<0)
#define SQ_SUCCEEDED(res) (res>=0)
#define SQ_SUSPEND_FLAG -666
#define SQ_TAILCALL_FLAG -777
#define DONT_FALL_BACK 666
//#define EXISTS_FALL_BACK -1
#define GET_FLAG_RAW 0x00000001
#define GET_FLAG_DO_NOT_RAISE_ERROR 0x00000002
typedef char SQChar;
typedef float SQFloat;
typedef long SQInteger;

View File

@ -35,6 +35,11 @@ struct SQVM
SQSharedState* _sharedstate;
char gap004[16];
int _top;
char gap005[148];
#if !defined (GAMEDLL_S0) && !defined (GAMEDLL_S1) && !defined (GAMEDLL_S2)
char gap006[30];
#endif
SQInteger _nnativecalls;
};
typedef SQVM* HSQUIRRELVM;