The Gaming Industry

14
Feb 2020

Registering #define values with engine

I’m registering methods that use #defines for default parameter values , ex: 

#define IO_HIGH     1
#define IO_LOW      0

Registration is successful, but the values are undefined when the script is compiled. I’m guessing b/c #defines are just macro substitutions by the preprocessor. I can use the #define value directly in the Registration call. That works fine, but of course is a bit error prone for the future.  T

Powered by WPeMatico

Tags are not defined
Comments are closed.