!define without arguments interferes with !define with arguments

0 votes
asked Dec 10, 2017 in Bug by Anthony-Gaudino (7,540 points)

This code:

!define foo called_foo1

!define foo(param) called_foo2 param

class house {
foo
foo(my_param)
}

Generates this:

class house {
called_foo1
called_foo1(my_param)
}

Instead of:

class house {
called_foo1
called_foo2 my_param
}

And also declaring as this, with empty parenthesis, causes syntax error:

!define foo() called_foo1

!define foo(param) called_foo2 param

class house {
foo
foo(my_param)
}

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...