StaticInitializerOrder.cpp 341 B

12345678910111213141516
  1. #define _REGISTRY
  2. #include "Registries.h"
  3. int count_WorldUpdateType = 0;
  4. #undef REGISTER
  5. #define REGISTER(c, typ) \
  6. const int c::ID = count_##typ++; \
  7. const c* c::INSTANCE = new c();
  8. // order of includes determines the ids
  9. // world updates
  10. #include "AddEntityUpdate.h"
  11. #include "EntityRemovedUpdate.h"