Skip to content

Instantly share code, notes, and snippets.

@chrisdickinson
Created November 25, 2012 01:06
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 chrisdickinson/904de7e97fff09f1939d to your computer and use it in GitHub Desktop.
Save chrisdickinson/904de7e97fff09f1939d to your computer and use it in GitHub Desktop.
#ifdef require
#require(x, {y: b}) as zzz_ret zzz(int a);
#export(main)
#else
struct zzz_ret{ int a; } zzz(int a);
#endif
#ifdef glslify
#require(some module)
y = b;
z = d;
#as
zzz_ret zzz(int z);
#export(main)
#else
struct zzz_ret{ int a; } zzz(int a);
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment