Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to "localize" (translate) your program
#3
LCD Wrote:I suppose, it is possible to define multiple macros, right?
-D LANG=de -D VERSION=hard -D RATING=adult
Yes, or that's the idea. Tongue

Note this is currently *beta* in 1.3.0.
The next version will have it more tested, since macros now allows also #if directives. e.g.
Code:
#if LANG==de && VERSION==hard || RATING=adult
PRINT "bla bla"
#else
PRINT "ble ble"
#endif
In a similar (but limited) way, as explained here: <!-- m --><a class="postlink" href="http://gcc.gnu.org/onlinedocs/cpp/If.html#If">http://gcc.gnu.org/onlinedocs/cpp/If.html#If</a><!-- m -->
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)