help with #define

I want to redefine some function but I get problems when I do it.

I want to define "neq a" to be "char a[128]"

1
2
3
  #define neq a char a[128] //error: 'a' undeclared (first use in this function)

  neq a;
Last edited on
Youy cannot have a space in your define token.

However you can try this:
#define new1(a) (char a[128])
Note new1 — you should never ever redefine standard keywords.
new is a function, not a define. You can only undefine a symbol that has been defined with #define.
anyway, even if was replace "new" word with another then how I could do with a place between them?
Last edited on
FWIW, what you are trying to do is a horrible abomination of code and should suffer the fate of the damned.
Topic archived. No new replies allowed.