Macro that converts a function name?
#7

Quote:
Originally Posted by ******
Посмотреть сообщение
How doesn't it work? That's exactly how it should be done.

Here's a useless example, but what am I doing wrong?
PHP код:

#define CONVERT_FUNC_NAME(%0) new_%0
new_Myfunction()
{
    print(
"test");
}
public 
OnGameModeInit()
{
    
CONVERT_FUNC_NAME(MyFunction)(); // error 017
    
return 1;

I get the following errors

Код:
error 017: undefined symbol "new_MyFunction"
warning 203: symbol is never used: "new_Myfunction"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)