[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/.
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#undef NDEBUG
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <map>
|
#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"
|
#include "utility.hpp"
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define OxError(x) ox::_error(__FILE__, __LINE__, x)
|
#define OxError(x) ox::_error(__FILE__, __LINE__, static_cast<ox::Error>(x))
|
||||||
#else
|
#else
|
||||||
#define OxError(x) x
|
#define OxError(x) static_cast<ox::Error>(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define oxReturnError(x) if (const auto _err = x) return _err
|
#define oxReturnError(x) if (const auto _err = x) return _err
|
||||||
|
Loading…
Reference in New Issue
Block a user