View Single Post
Author Message
xerox8521
Senior Member
Join Date: Sep 2011
Old 06-13-2018 , 10:21   #define results in undefined symbol
Reply With Quote #1

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:
#define CHANGE_FLAGS(flags,newFlags) (flags = (newFlags)) 
Used in a function like this.

PHP Code:
stock void AddTankImmunityFlag(int tankint flags)
{
    
CHANGE_FLAGSTankInfo[tank][tImmunity], TankInfo[tank][tImmunity] | flags );

SM Compiler Version: 1.8.0.6041

Last edited by xerox8521; 06-13-2018 at 10:24.
xerox8521 is offline