diff options
author | rtk0c <[email protected]> | 2022-05-28 20:52:42 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-28 20:52:42 -0700 |
commit | 1a6f1ea3b76c3ed4cad5aba5502af390ce50a2c0 (patch) | |
tree | 40627f5cdfd931b8c28f0b3a5ec78ef0d0f2b9f0 /buildtools/codegen/CodegenLookupTable.h | |
parent | 6c3007295a6a8c6803933392834c974ec5f56aa0 (diff) |
Changeset: 42 Change codegen input parsing to lookahead based; lookup table infra; input/output decl infra
Diffstat (limited to 'buildtools/codegen/CodegenLookupTable.h')
-rw-r--r-- | buildtools/codegen/CodegenLookupTable.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/buildtools/codegen/CodegenLookupTable.h b/buildtools/codegen/CodegenLookupTable.h deleted file mode 100644 index 02c0c7a..0000000 --- a/buildtools/codegen/CodegenLookupTable.h +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once - -#define LUT_DECL_VAR(name, aType, aCount, bType, bCount) \ - int name##A2B[aCount]; \ - int name##B2A[bCount]; \ - using name##AType = aType; \ - using name##BType = bType; \ - void InitializeLookupTable_##name() - -#define LUT_MAP_FOR(name) \ - int* lutMappingA2B = name##A2B; \ - int* lutMappingB2A = name##B2A -#define LUT_MAP(from, to) \ - lutMappingA2B[from] = to; \ - lutMappingB2A[to] = from - -#define LUT_INIT(name) InitializeLookupTable_##name() -#define LUT_LOOKUP(name, from) (name##BType)(name##A2B[from]) -#define LUT_REV_LOOKUP(name, to) (name##AType)(name##B2A[to]) |