Last change
on this file since 56 was
56,
checked in by Sam Hocevar, 14 years ago
|
- Add licensing terms to most C / C++ files (Ref #5).
|
File size:
1004 bytes
|
Rev | Line | |
---|
[56] | 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 | |
---|
[2] | 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 | |
---|
[17] | 35 | //#define uchar unsigned char |
---|
| 36 | //#define schar signed char |
---|
[2] | 37 | //#define ushort unsigned short |
---|
[17] | 38 | //typedef unsigned short int ushort; |
---|
| 39 | //#define sshort signed short |
---|
[2] | 40 | //#define ulong unsigned long |
---|
[17] | 41 | //typedef unsigned long int ulong; |
---|
[2] | 42 | |
---|
| 43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.