Clone of PhatAC @ https://github.com/floaterxk/PhatAC

Common.h 412B

1234567891011121314151617181920212223
  1. #pragma once
  2. #pragma warning(disable: 4200)
  3. #pragma pack(push, 1)
  4. #if _DEBUG
  5. #define DEBUG_BREAK() DebugBreak()
  6. #else
  7. #define DEBUG_BREAK()
  8. #endif
  9. #define SafeDelete(x) { if (x) { delete x; x = 0; } }
  10. #define SafeDeleteArray(x) { if (x) { delete [] x; x = 0; } }
  11. #include "NetworkDefs.h"
  12. #include "Enums.h"
  13. #include "Logging.h"
  14. #include "Killable.h"
  15. #include "Math.h"
  16. #include "Util.h"
  17. #include "Globals.h"