mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +00:00
- fixed: 'self' may never be null for native VM functions so it must always abort if null gets passed.
This commit is contained in:
parent
757957bfac
commit
1ed415014e
1 changed files with 3 additions and 3 deletions
|
@ -579,7 +579,7 @@ class AActor;
|
||||||
// callingstate - State this action was called from
|
// callingstate - State this action was called from
|
||||||
#define PARAM_ACTION_PROLOGUE(type) \
|
#define PARAM_ACTION_PROLOGUE(type) \
|
||||||
PARAM_PROLOGUE; \
|
PARAM_PROLOGUE; \
|
||||||
PARAM_OBJECT (self, AActor); \
|
PARAM_OBJECT_NOT_NULL (self, AActor); \
|
||||||
PARAM_OBJECT (stateowner, type) \
|
PARAM_OBJECT (stateowner, type) \
|
||||||
PARAM_POINTER (stateinfo, FStateParamInfo) \
|
PARAM_POINTER (stateinfo, FStateParamInfo) \
|
||||||
|
|
||||||
|
@ -588,12 +588,12 @@ class AActor;
|
||||||
|
|
||||||
#define PARAM_SELF_PROLOGUE(type) \
|
#define PARAM_SELF_PROLOGUE(type) \
|
||||||
PARAM_PROLOGUE; \
|
PARAM_PROLOGUE; \
|
||||||
PARAM_OBJECT(self, type);
|
PARAM_OBJECT_NOT_NULL(self, type);
|
||||||
|
|
||||||
// for structs we cannot do a class validation
|
// for structs we cannot do a class validation
|
||||||
#define PARAM_SELF_STRUCT_PROLOGUE(type) \
|
#define PARAM_SELF_STRUCT_PROLOGUE(type) \
|
||||||
PARAM_PROLOGUE; \
|
PARAM_PROLOGUE; \
|
||||||
PARAM_POINTER(self, type);
|
PARAM_POINTER_NOT_NULL(self, type);
|
||||||
|
|
||||||
class PFunction;
|
class PFunction;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue