mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
15 lines
520 B
C
15 lines
520 B
C
#ifndef __WCHECK_
|
|
#define __WCHECK_
|
|
|
|
#define CHECKF(exp) if (!(exp)) { return(FALSE); }
|
|
#define CHECKV(exp) if (!(exp)) { return; }
|
|
#define CHECKN(exp) if (!(exp)) { return(NULL); }
|
|
#define CHECKBI(exp) if (!(exp)) { return(-1); }
|
|
|
|
#define CHECKASSERTF(exp) if (!(exp)) { ASSERT(0); return(FALSE); }
|
|
#define CHECKASSERTV(exp) if (!(exp)) { ASSERT(0); return; }
|
|
#define CHECKASSERTN(exp) if (!(exp)) { ASSERT(0); return(NULL); }
|
|
#define CHECKASSERTBI(exp) if (!(exp)) { ASSERT(0); return(-1); }
|
|
|
|
#endif
|