1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-25 21:33:44 +00:00
C02/test/define.c02
2018-03-03 14:35:12 -05:00

16 lines
242 B
Plaintext

/* Test C02 define directive */
#pragma origin 1000
#define TRUE = $FF
#define FALSE = 0
#enum ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN
char a = {#TRUE, #FALSE};
char b;
char f = #FALSE;
char t = #TRUE;
b = #TRUE;