I found a solution that works in Windows and Unix, using simple preprocessor instructions.
http://stackoverflow.com/a/12397886/350106
In reply to Re^4: (OT) How can I do unless(caller) { main; } in C using GCC in Windows?
by Anonymous Monk
in thread (OT) How can I do unless(caller) { main; } in C using GCC in Windows?
by mcandre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |