NOWINBASEINTERLOCK preprocessor definition issues
by Playware · in Torque Game Engine Advanced · 04/23/2009 (8:23 pm) · 3 replies
Hi,
I need to use InterlockedIncrement and InterlockedDecrement functions defined in winbase.h. The problem is these functions are only defined if the NOWINBASEINTERLOCK is not defined. In Torque, NOWINBASEINTERLOCK is defined in preprocessor definitions. So, these Interlocked... functions become unknown identifiers.
Removing that definition from preprocessor definitions solved my issue.
I want to know how could this affect to the engine and wonder it can introduce some odd results.
Thanks
I need to use InterlockedIncrement and InterlockedDecrement functions defined in winbase.h. The problem is these functions are only defined if the NOWINBASEINTERLOCK is not defined. In Torque, NOWINBASEINTERLOCK is defined in preprocessor definitions. So, these Interlocked... functions become unknown identifiers.
Removing that definition from preprocessor definitions solved my issue.
I want to know how could this affect to the engine and wonder it can introduce some odd results.
Thanks
About the author
Torque Owner Gerald Fishel
Development Ninja
Actually using them is another matter, but removing the pre-processor directive shouldn't hurt anything.