StdInclude.h 1022 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma once
  2. #ifdef _MSC_VER
  3. // This is just a dummy to get intellisense for JukeBox stuff
  4. #include "../JukeboxSDK/SDK/API/Jukebox.h"
  5. #include "../JukeboxSDK/SDK/API/JukeboxTypes.h"
  6. #ifndef JUKEBOX_VISUALDEBUG
  7. // We still want to be able to compile VisualDebug configuration
  8. static_assert(false, "This shouldnt be compiled with Visual Studio");
  9. #endif //JUKEBOX_VISUALDEBUG
  10. #else
  11. #include "Jukebox.h"
  12. #endif
  13. #ifndef DEBUG
  14. #ifdef NDEBUG
  15. #define DEBUG 0
  16. #else
  17. #define DEBUG 1
  18. #endif
  19. #endif
  20. #if DEBUG
  21. #define CHECKINVARIANT() CheckInvariant(__FUNCTION__)
  22. #define CHECKINVARIANT_OTHER() iOther.CheckInvariant("iOther")
  23. #define IF_DEBUG(x) x
  24. #define ASSERT JBOX_ASSERT
  25. #define ASSERT_INVARIANT(x) JBOX_ASSERT_MESSAGE(x, iFunctionName)
  26. #define ASSERT_MSG JBOX_ASSERT_MESSAGE
  27. #else
  28. #define CHECKINVARIANT()
  29. #define CHECKINVARIANT_OTHER()
  30. #define IF_DEBUG(x)
  31. #define ASSERT(x)
  32. #define ASSERT_INVARIANT(x)
  33. #define ASSERT_MSG(x, y)
  34. #endif
  35. #include <cstring>
  36. #include <cstdint>
  37. #include <cmath>