mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +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 };
|
enum { MetaClassNum = CLASSREG_PClass };
|
||||||
|
|
||||||
// Per-instance variables. There are four.
|
// Per-instance variables. There are four.
|
||||||
#ifdef _DEBUG
|
#ifndef NDEBUG
|
||||||
public:
|
public:
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue