[ox] Move NodeBuffer and Ptr to ptrarith package
This commit is contained in:
13
deps/ox/src/ox/std/assert.cpp
vendored
13
deps/ox/src/ox/std/assert.cpp
vendored
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
1
deps/ox/src/ox/std/memops.cpp
vendored
1
deps/ox/src/ox/std/memops.cpp
vendored
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
* Copyright 2015 - 2018 gtalent2@gmail.com
|
||||
*
|
||||
|
Reference in New Issue
Block a user