PVcollib  1.5.0
A devkit for ColecoVision
coltypes.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------------
2 
3  coltypes.h -- Common types (and a few useful macros)
4 
5  Copyright (C) 2018-2019
6  Alekmaul
7 
8  This software is provided 'as-is', without any express or implied
9  warranty. In no event will the authors be held liable for any
10  damages arising from the use of this software.
11 
12  Permission is granted to anyone to use this software for any
13  purpose, including commercial applications, and to alter it and
14  redistribute it freely, subject to the following restrictions:
15 
16  1. The origin of this software must not be misrepresented; you
17  must not claim that you wrote the original software. If you use
18  this software in a product, an acknowledgment in the product
19  documentation would be appreciated but is not required.
20  2. Altered source versions must be plainly marked as such, and
21  must not be misrepresented as being the original software.
22  3. This notice may not be removed or altered from any source
23  distribution.
24 
25 ---------------------------------------------------------------------------------*/
30 #ifndef _COLTYPES_INCLUDE
31 #define _COLTYPES_INCLUDE
32 
34 #define BIT(n) (1<<n)
35 
37 typedef signed char s8;
38 typedef unsigned char u8;
39 typedef signed s16;
40 typedef unsigned u16;
41 
43 typedef unsigned char bool;
44 #define FALSE 0
45 #define TRUE 0xff
46 #define false 0
47 #define true 0xff
48 
49 // stdio definitions
50 #ifndef NULL
51 #define NULL 0
52 #endif
53 
54 #endif
unsigned char bool
boolean definitions
Definition: coltypes.h:43
signed char s8
8 bit and 16 bit signed and unsigned.
Definition: coltypes.h:37