@@ -27,8 +27,8 @@
namespace bx
{
- const int32_t kExitSuccess = 0;
- const int32_t kExitFailure = 1;
+ constexpr int32_t kExitSuccess = 0;
+ constexpr int32_t kExitFailure = 1;
/// Template for avoiding MSVC: C4127: conditional expression is constant
template<bool>
@@ -14,7 +14,7 @@ BX_ERROR_RESULT(BX_ERROR_NOT_DIRECTORY, BX_MAKEFOURCC('b', 'x', 0, 1) );
- const int32_t kMaxFilePath = 1024;
+ constexpr int32_t kMaxFilePath = 1024;
/// Special predefined OS directories.
///