[ox] Merge branch 'master' of github.com:gtalent/nostalgia
This commit is contained in:
parent
0c05d298d0
commit
1bf3809b47
2
deps/ox/src/ox/mc/test/tests.cpp
vendored
2
deps/ox/src/ox/mc/test/tests.cpp
vendored
@ -6,6 +6,8 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#undef NDEBUG
|
||||
|
||||
#include <assert.h>
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
|
4
deps/ox/src/ox/std/error.hpp
vendored
4
deps/ox/src/ox/std/error.hpp
vendored
@ -12,9 +12,9 @@
|
||||
#include "utility.hpp"
|
||||
|
||||
#ifdef DEBUG
|
||||
#define OxError(x) ox::_error(__FILE__, __LINE__, x)
|
||||
#define OxError(x) ox::_error(__FILE__, __LINE__, static_cast<ox::Error>(x))
|
||||
#else
|
||||
#define OxError(x) x
|
||||
#define OxError(x) static_cast<ox::Error>(x)
|
||||
#endif
|
||||
|
||||
#define oxReturnError(x) if (const auto _err = x) return _err
|
||||
|
Loading…
Reference in New Issue
Block a user