mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
Made usage of assertions in VM code consistent
https://forum.zdoom.org/viewtopic.php?t=56995
This commit is contained in:
parent
4229389680
commit
279b1e27dc
3 changed files with 3 additions and 3 deletions
|
@ -198,7 +198,7 @@ protected:
|
|||
enum { MetaClassNum = CLASSREG_PClass };
|
||||
|
||||
// Per-instance variables. There are four.
|
||||
#ifdef _DEBUG
|
||||
#ifndef NDEBUG
|
||||
public:
|
||||
enum
|
||||
{
|
||||
|
|
|
@ -376,7 +376,7 @@ int VMCall(VMFunction *func, VMValue *params, int numparams, VMReturn *results,
|
|||
// variable name <x> at position <p>
|
||||
void NullParam(const char *varname);
|
||||
|
||||
#ifdef _DEBUG
|
||||
#ifndef NDEBUG
|
||||
bool AssertObject(void * ob);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@ void VMFillParams(VMValue *params, VMFrame *callee, int numparam)
|
|||
}
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
#ifndef NDEBUG
|
||||
bool AssertObject(void * ob)
|
||||
{
|
||||
auto obj = (DObject*)ob;
|
||||
|
|
Loading…
Reference in a new issue