BsPrerequisitesUtil.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #pragma once
  2. #include <assert.h>
  3. // 0 - No thread support
  4. // 1 - Render system is thread safe (TODO: NOT WORKING and will probably be removed)
  5. // 2 - Thread support but render system can only be accessed from main thread
  6. #define BS_THREAD_SUPPORT 2
  7. #define BS_PROFILING_ENABLED 1
  8. // Versions
  9. #define BS_VER_DEV 1
  10. #define BS_VER_PREVIEW 2
  11. #define BS_VER BS_VER_DEV
  12. // Platform-specific stuff
  13. #include "BsPlatformDefines.h"
  14. #if BS_COMPILER == BS_COMPILER_MSVC
  15. // TODO - This is not deactivated anywhere, therefore it applies to any file that includes this header.
  16. // - Right now I don't have an easier way to apply these warnings globally so I'm keeping it this way.
  17. // Secure versions aren't multiplatform, so we won't be using them
  18. #define _CRT_SECURE_NO_WARNINGS
  19. // disable: "<type> needs to have dll-interface to be used by clients'
  20. // Happens on STL member variables which are not public therefore is ok
  21. # pragma warning (disable: 4251)
  22. // disable: 'X' Function call with parameters that may be unsafe
  23. # pragma warning(disable: 4996)
  24. // disable: decorated name length exceeded, name was truncated
  25. // Happens with really long type names. Even fairly standard use
  26. // of std::unordered_map with custom parameters, meaning I can't
  27. // really do much to avoid it. It shouldn't effect execution
  28. // but might cause problems if you compile library
  29. // with one compiler and use it in another.
  30. # pragma warning(disable: 4503)
  31. #endif
  32. // Short-hand names for various built-in types
  33. #include "BsTypes.h"
  34. #include "BsMemoryAllocator.h"
  35. // Useful threading defines
  36. #include "BsThreadDefines.h"
  37. // Commonly used standard headers
  38. #include "BsStdHeaders.h"
  39. // Forward declarations
  40. #include "BsFwdDeclUtil.h"
  41. #include "BsRTTIPrerequisites.h"
  42. #include "BsString.h"
  43. #include "BsMessageHandlerFwd.h"
  44. #include "BsUtil.h"
  45. #include "BsPath.h"
  46. #include "BsStringID.h"
  47. #include "BsEvent.h"