Macro that converts a function name?
#1

Hello, I have a question about macro's.
Is it possible to make a macro that converts a function name to a new name? for example:

Код:
CONVERT_FUNC_NAME(MyFunction)
Which should be rewritten as:

Код:
new_MyFunction
This is what I tried, but that doesn't really work
Quote:

#define CONVERT_FUNC_NAME(%0) new_%0

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)