Linux equivilent of push_macro
by Dean Calver · in Torque Game Engine · 10/23/2004 (12:43 pm) · 0 replies
Under Windows VC.NET you can do
And Ring_Owner would be back to Bilbo.
Anybody know if you can do a similar thing under GNU compilers.
Thanks,
Deano
#define Ring_Owner Bilbo
#pragma push_macro("Ring_Owner")
#define Ring_Owner Frodo
#pragma pop_macro("Ring_Owner")And Ring_Owner would be back to Bilbo.
Anybody know if you can do a similar thing under GNU compilers.
Thanks,
Deano
About the author
Been a games dev for more years than its comfortable to remember. Have shipped a fair few games, most recently have been Lead Programmer on Brink and Heavenly Sword.