[ox] Merge branch 'master' of github.com:gtalent/nostalgia

This commit is contained in:
Gary Talent 2019-06-14 18:13:50 -05:00
parent 0c05d298d0
commit 1bf3809b47
2 changed files with 4 additions and 2 deletions

View File

@ -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>

View File

@ -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