Game Development Community

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

#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