You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
655 B
C
39 lines
655 B
C
//
|
|
// G A M E.O.N.E - LOW LEVEL LIB V1.0
|
|
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
|
|
// Licensed under the terms of LGPL.
|
|
//:---------------------------------------------------------------------------
|
|
//:Description
|
|
//
|
|
// LOW LEVEL LIB SYS_ASSERT INCLUDE FILE
|
|
//
|
|
|
|
#ifndef _SYS_ASSERT_H
|
|
#define _SYS_ASSERT_H
|
|
|
|
|
|
/*
|
|
* ASSERT Funktionen im DEBUG MODUS
|
|
*/
|
|
#ifdef _DEBUG
|
|
#include <crtdbg.h>
|
|
|
|
#define SYS_ASSERT(b) _ASSERT(b)
|
|
#define SYS_ASSERT_PTR(p) \
|
|
SYS_ASSERT(_CrtIsValidPointer(p, sizeof(*p), false));
|
|
|
|
|
|
/*
|
|
* RELEASE MODUS
|
|
*/
|
|
#else
|
|
|
|
#ifndef SYS_ASSERT
|
|
#define SYS_ASSERT(b)
|
|
#define SYS_ASSERT_PTR(p)
|
|
#endif
|
|
|
|
#endif //_DEBUG
|
|
|
|
#endif //_SYS_ASSERT_H
|