diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-03-18 11:26:40 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-03-18 11:26:40 +0100 |
commit | fee81a2dbda7791f462adc70e080e4bb6e96365f (patch) | |
tree | 22eeb8e39ecf018bbad00a7e327d47bf8e389c14 /source/table.c | |
parent | c1cbf799aef1393fecd707b6121c8a3d94d0a773 (diff) |
Bug fixes
Fixed not outputting '@' if no keyword follows
Fixed not outputting newline after @expand expression
Diffstat (limited to 'source/table.c')
-rw-r--r-- | source/table.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/source/table.c b/source/table.c deleted file mode 100644 index d2ec1ad..0000000 --- a/source/table.c +++ /dev/null @@ -1,27 +0,0 @@ -#include <stdio.h> - -@table(name, str) MyEnumTable -{ - { A "A" } - { B "B" } - { C "C" } -} - -typedef enum { -@expand(MyEnumTable a) - `MyEnum_$(a.name),` -MyEnum_Count -} MyEnum; - -char *StringTable[MyEnum_Count] = { -@expand(MyEnumTable a) `$(a.str),` -}; - - -int -main(int Argc, char *Args[]) -{ - printf("%s\n", StringTable[MyEnum_B]); - - return 0; -} |