mirror of
https://github.com/cc65/cc65.git
synced 2024-09-01 14:29:31 +00:00
31 lines
360 B
C
31 lines
360 B
C
|
|
||
|
/* issue #1357 - X Macros don't work with C preprocessor */
|
||
|
|
||
|
#define OPCODES(X) \
|
||
|
X(PUSHNIL) \
|
||
|
X(PUSHTRUE) \
|
||
|
X(PUSHFALSE)
|
||
|
|
||
|
enum {
|
||
|
#define X(op) op,
|
||
|
OPCODES(X)
|
||
|
#undef X
|
||
|
N_OPS
|
||
|
};
|
||
|
|
||
|
/* cc65 -E bug1357.c -o bug1357.c.pre
|
||
|
should produce something like this:
|
||
|
|
||
|
enum {
|
||
|
PUSHNIL,
|
||
|
PUSHTRUE,
|
||
|
PUSHFALSE,
|
||
|
N_OPS
|
||
|
};
|
||
|
*/
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|