Made usage of assertions in VM code consistent

https://forum.zdoom.org/viewtopic.php?t=56995
This commit is contained in:
alexey.lysiuk 2017-06-22 09:45:09 +03:00
parent 4229389680
commit 279b1e27dc
3 changed files with 3 additions and 3 deletions

View file

@ -198,7 +198,7 @@ protected:
enum { MetaClassNum = CLASSREG_PClass }; enum { MetaClassNum = CLASSREG_PClass };
// Per-instance variables. There are four. // Per-instance variables. There are four.
#ifdef _DEBUG #ifndef NDEBUG
public: public:
enum enum
{ {

View file

@ -376,7 +376,7 @@ int VMCall(VMFunction *func, VMValue *params, int numparams, VMReturn *results,
// variable name <x> at position <p> // variable name <x> at position <p>
void NullParam(const char *varname); void NullParam(const char *varname);
#ifdef _DEBUG #ifndef NDEBUG
bool AssertObject(void * ob); bool AssertObject(void * ob);
#endif #endif

View file

@ -229,7 +229,7 @@ void VMFillParams(VMValue *params, VMFrame *callee, int numparam)
} }
#ifdef _DEBUG #ifndef NDEBUG
bool AssertObject(void * ob) bool AssertObject(void * ob)
{ {
auto obj = (DObject*)ob; auto obj = (DObject*)ob;