Skip to content

Instantly share code, notes, and snippets.

@matt-42
Created January 19, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt-42/a53cc0b0a8d8f1cf673f to your computer and use it in GitHub Desktop.
Save matt-42/a53cc0b0a8d8f1cf673f to your computer and use it in GitHub Desktop.
Iod preprocessing
// The preprocessor transforms this file:
#include <iod/symbol.hh>
int main()
{
@test;
}
// Into:
#include <iod/symbol.hh>
#ifndef IOD_SYMBOL__test
# define IOD_SYMBOL__test
iod_define_symbol(test, _test);
#endif
int main()
{
s::_test;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment