Last change
on this file since 481 was
481,
checked in by Sam Hocevar, 12 years ago
|
Fuck the history, I'm renaming all .hpp files to .h for my own sanity.
|
-
Property svn:keywords set to
Id
|
File size:
1002 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Abuse - dark 2D side-scrolling platform game |
---|
3 | * Copyright (c) 1995 Crack dot Com |
---|
4 | * |
---|
5 | * This software was released into the Public Domain. As with most public |
---|
6 | * domain software, no warranty is made or implied by Crack dot Com or |
---|
7 | * Jonathan Clark. |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef MACS__ |
---|
11 | #define MACS__ |
---|
12 | #include "system.h" |
---|
13 | #include <stdio.h> |
---|
14 | #define ERROR(x,st) { if (!(x)) \ |
---|
15 | { printf("Error on line %d of %s : %s\n", \ |
---|
16 | __LINE__,__FILE__,st); exit(1); } } |
---|
17 | |
---|
18 | // These macros should be removed for the non-debugging version |
---|
19 | #ifdef NO_CHECK |
---|
20 | #define CONDITION(x,st) |
---|
21 | #define CHECK(x) |
---|
22 | #else |
---|
23 | #define CONDITION(x,st) ERROR(x,st) |
---|
24 | #define CHECK(x) CONDITION(x,"Check stop"); |
---|
25 | #endif |
---|
26 | |
---|
27 | |
---|
28 | #ifndef min |
---|
29 | #define min(x,y) (x<y ? x:y) |
---|
30 | #endif |
---|
31 | #ifndef max |
---|
32 | #define max(x,y) (x>y ? x:y) |
---|
33 | #endif |
---|
34 | |
---|
35 | //#define uchar unsigned char |
---|
36 | //#define schar signed char |
---|
37 | //#define ushort unsigned short |
---|
38 | //typedef unsigned short int ushort; |
---|
39 | //#define sshort signed short |
---|
40 | //#define ulong unsigned long |
---|
41 | //typedef unsigned long int ulong; |
---|
42 | |
---|
43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.