Skip to content

Commit 1d949f5

Browse files
committed
Tiny hack while we don't have a working preprocessor yet
1 parent fb25d61 commit 1d949f5

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

compiler_intrinsics/metac_compiler_interface.h

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,27 @@
88
typedef unsigned int uint32_t;
99
typedef int int32_t;
1010

11-
#include "metac_type_kind.h"
11+
// #include "metac_type_kind.h"
12+
13+
typedef enum metac_type_kind_t {
14+
TypeKind_Unknown = 0x0,
15+
TypeKind_Basic = 0x1,
16+
TypeKind_Enum = 0x2,
17+
TypeKind_Ptr = 0x3,
18+
TypeKind_Array = 0x4,
19+
TypeKind_Struct = 0x5,
20+
TypeKind_Union = 0x6,
21+
TypeKind_Class = 0x7,
22+
TypeKind_Map = 0x8,
23+
TypeKind_Functiontype = 0x9,
24+
TypeKind_Typedef = 0xA,
25+
TypeKind_Tuple = 0xB,
26+
TypeKind_Template = 0xC,
27+
TypeKind_Unresolved = 0xD,
28+
TypeKind_Extended = 0xE,
29+
TypeKind_Invalid = 0xF,
30+
} metac_type_kind_t;
31+
1232

1333
typedef struct metac_enum_members_t {
1434
const char** Names;

os/os.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/// Small platfrom abstraction
2+
#ifndef _OS_C_
3+
#define _OS_C_
24
#include "compat.h"
35
#include "os.h"
46
#include <time.h>
@@ -125,3 +127,4 @@ const char* TimeStampToChars(uint32_t tsp)
125127
return (const char*) &buffer[0];
126128
}
127129
}
130+
#endif // _OS_C_

0 commit comments

Comments
 (0)