[ox] Move NodeBuffer and Ptr to ptrarith package

This commit is contained in:
2018-04-14 10:53:02 -05:00
parent b2245cc3b2
commit fc3ec47330
11 changed files with 58 additions and 23 deletions

View File

@@ -6,22 +6,23 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <ox/__buildinfo/defines.hpp>
#if defined(OX_USE_STDLIB)
#include <iostream>
#include <ox/__buildinfo/defines.hpp>
#endif
namespace ox {
void _assert([[maybe_unused]]const char *file, [[maybe_unused]]int line, [[maybe_unused]]bool pass, [[maybe_unused]]const char *msg) {
#if defined(OX_USE_STDLIB)
void _assert(const char *file, int line, bool pass, const char *msg) {
if (!pass) {
std::cerr << '(' << file << ':' << line << "): " << msg << std::endl;
std::abort();
}
}
#else
void _assert(const char*, int, bool, const char*) {
}
#endif
}
}

View File

@@ -1,4 +1,3 @@
/*
* Copyright 2015 - 2018 gtalent2@gmail.com
*