#define results in undefined symbol
Hi,
for some reason a #define results in a undefined symbol "CHANGE_FLAGS" error. Which is weird as is its based upon this code: https://github.com/ValveSoftware/sou...hared.cpp#L175 PHP Code:
PHP Code:
|
Re: #define results in undefined symbol
SourcePawn is not C++, the syntax is completely wrong, and function macros are deprecated.
The correct SourcePawn syntax is something like this: Code:
#define CHANGE_FLAGS(%1,%2) (%1 = (%2)) Code:
stock void CHANGE_FLAGS(int &flags, int newFlags) { |
Re: #define results in undefined symbol
Right in pawn its (%1,%2) completly forgot that. Thanks.
Took the sdk code as is without much more looking or thinking about it. |
All times are GMT -4. The time now is 12:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.