forked from ceu-lang/ceu-sdl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ceu_types.h
43 lines (37 loc) · 785 Bytes
/
ceu_types.h
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
40
41
42
43
#ifndef _CEU_TYPES_H
#define _CEU_TYPES_H
#include <stdint.h>
#ifdef __LP64__
typedef unsigned long word;
#else
typedef unsigned int word;
#endif
typedef unsigned int uint;
typedef unsigned char byte;
#ifndef __cplusplus
typedef unsigned char bool;
#endif
typedef int64_t s64;
typedef int32_t s32;
typedef int16_t s16;
typedef int8_t s8;
typedef uint64_t u64;
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
typedef float f32;
typedef double f64;
void ceu_sys_log (int mode, long s) {
switch (mode) {
case 0:
fprintf(stderr, "%s", (char*)s);
break;
case 1:
fprintf(stderr, "%lX", s);
break;
case 2:
fprintf(stderr, "%ld", s);
break;
}
}
#endif