source: abuse/trunk/src/imlib/macs.h @ 490

Last change on this file since 490 was 490, checked in by Sam Hocevar, 10 years ago

lisp: implement LispList::GetLength?.

  • Property svn:keywords set to Id
File size: 939 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
27static inline int Min(int a, int b) { return a < b ? a : b; }
28static inline int Max(int a, int b) { return a > b ? a : b; }
29static inline float Min(float a, float b) { return a < b ? a : b; }
30static inline float Max(float a, float b) { return a > b ? a : b; }
31
32#endif
Note: See TracBrowser for help on using the repository browser.