[cc65] Preprocessor Issue (?)

From: Oliver Schmidt <ol.sc1web.de>
Date: 2012-01-19 23:23:47
Hi,

The code down below doesn't compile with

test.c(10): Error: Undefined symbol: `GREET'
test.c(10): Warning: Statement has no effect
test.c(10): Error: `;' expected
test.c(10): Error: Identifier expected
test.c(10): Warning: Implicit `int' is an obsolete feature
test.c(10): Error: `;' expected

Other compilers consider it usable...

Regards,
Oliver

----------

#include <stdio.h>

#define GREET() printf("Hello")

#define HELLO GREET

void main(void)
{
  HELLO();
}
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jan 19 23:23:53 2012

This archive was generated by hypermail 2.1.8 : 2012-01-19 23:23:56 CET