summaryrefslogtreecommitdiff
path: root/3dc/win95/OURASERT.H
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-07-01 00:55:22 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:09:04 +0200
commit2186d5f3f95cd74a070a490d899291648d58667a (patch)
tree55241a1afa3e1a22e0b6593a8dead0b703800f44 /3dc/win95/OURASERT.H
parent218ca90543758a20ac326e444ca0643174ca7384 (diff)
Initial revision
Diffstat (limited to '3dc/win95/OURASERT.H')
-rw-r--r--3dc/win95/OURASERT.H138
1 files changed, 0 insertions, 138 deletions
diff --git a/3dc/win95/OURASERT.H b/3dc/win95/OURASERT.H
deleted file mode 100644
index 6ffa3de..0000000
--- a/3dc/win95/OURASERT.H
+++ /dev/null
@@ -1,138 +0,0 @@
-
-/*
- This is our assert file for the Win95
- platform, with Dave's global/local assert
- distinctions.
-*/
-
-/*
- Note that WaitForReturn now calls FlushTextprintBuffer
- and FlipBuffers implicitly.
-*/
-
-/*
- Modified 10th December 1996 by Dave Malcolm. Now can be set so that
- functions are supplied by the project/platform to fire when an assertion
- fires.
-
- Also is set so that the compiler will generate an error message if you manage to
- include the file more than once (with confusing definitons of UseLocalAssert);
- this can be disabled.
-*/
-
-
-#ifdef _OURASERT
- #if StopCompilationOnMultipleInclusions
- #error OURASERT.H included more than once
- #endif
-#else
- #define _OURASERT 1
-#endif
-
-
-#ifdef AVP_DEBUG_VERSION
- #define ASSERT_SYSTEM_ON 1
-#else
- #define ASSERT_SYSTEM_ON 0
-#endif
-
-
-#if UseProjPlatAssert
-/* New assertions system */
-
- #ifdef __cplusplus
- extern "C" {
- #endif
- int GlobalAssertFired(char* Filename, int LineNum, char* Condition);
- int LocalAssertFired(char* Filename, int LineNum, char* Condition);
- void ExitFired(char* Filename, int LineNum, int ExitCode);
- #ifdef __cplusplus
- };
- #endif
-
-
- #if ASSERT_SYSTEM_ON
-
- #define GLOBALASSERT(x) \
- (void)( (x) ? 1 : \
- ( \
- GlobalAssertFired \
- ( \
- __FILE__, \
- __LINE__, \
- #x \
- ) \
- ) \
- )
-
- #if UseLocalAssert
-
- #define LOCALASSERT(x) \
- (void)( (x) ? 1 : \
- ( \
- LocalAssertFired \
- ( \
- __FILE__, \
- __LINE__, \
- #x \
- ) \
- ) \
- )
-
- #else
-
- #define LOCALASSERT(ignore)
-
- #endif
-
-
- #define exit(x) ExitFired(__FILE__,__LINE__,x)
-
- #else
-
- #define GLOBALASSERT(ignore) ((void)0)
-
- #define LOCALASSERT(ignore) ((void)0)
-
- #endif
-
-
-#else
-/* Old assertions system */
-
- #define GlobalAssertCode 0xffff
- #define LocalAssertCode 0xfffe
-
-
- #if 0//debug
-
- #define GLOBALASSERT(x) \
- (void)((x) ? 1 : \
- (textprint("\nGAF " #x "\nLINE %d\nFILE'%s'\n", \
- __LINE__, __FILE__), WaitForReturn(), \
- ExitSystem(), exit(GlobalAssertCode), \
- 0))
-
- #if UseLocalAssert
-
- #define LOCALASSERT(x) \
- (void)((x) ? 1 : \
- (textprint("\nLAF " #x "LINE %d\nFILE'%s'\n", \
- __LINE__, __FILE__), WaitForReturn(), \
- ExitSystem(), exit(LocalAssertCode), \
- 0))
-
- #else
-
- #define LOCALASSERT(ignore)
-
- #endif
-
- #else
-
- #define GLOBALASSERT(ignore)
-
- #define LOCALASSERT(ignore)
-
- #endif
-#endif