Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #define MY(f) this.effectinfo_##f
  2. #define DEF(name) EFFECTINFO(name)
  3. #define SUB(name) \
  4. [[accumulate]] void effectinfo_##name(EffectInfoGroup parent, EffectInfo this) { parent = EFFECTINFO_##name; parent.children[parent.children_count++] = this = NEW(EffectInfo, #name); } \
  5. [[accumulate]] void effectinfo_##name(EffectInfoGroup parent, EffectInfo this)
  6. #include "effectinfo.inc"
  7. #undef MY
  8. #undef DEF
  9. #undef SUB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement