summaryrefslogtreecommitdiff
path: root/zap/include/zap/bs.h
blob: 1204690d2b7c8a6b1ac6b1f85686dae1b5c1c615 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
	Copyright 2022 Gabriel Jensen.
	This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
	If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

#if !defined(zap_priv_hdr_bs)
#define zap_priv_hdr_bs

#if defined(__cplusplus)
extern "C" {
#endif

typedef unsigned char zap_bool;
#define zap_false ((zap_bool)+0x0u)
#define zap_true  ((zap_bool)+0xFFu)

typedef unsigned short zap_chr10;
typedef unsigned int   zap_chr20;
typedef unsigned char  zap_chr8;

typedef signed char zap_cmp;
#define zap_eq ((zap_cmp)+0x0)
#define zap_gt ((zap_cmp)+0x7F)
#define zap_lt ((zap_cmp)-0x80)

#define zap_nopos (~((zap_sz)+0u))

#define zap_nullptr (0x0u)

typedef unsigned long zap_sz;

#define zap_ver ((unsigned long)+0x12u)

#if defined(__cplusplus)
}
#endif

#endif