- events tested and implemented multithreading support through mpscq
This commit is contained in:
@@ -17,12 +17,21 @@
|
||||
// =====================================================================================================================
|
||||
|
||||
#include <fennec/lang/detail/_stdlib.h>
|
||||
#include <fennec/string/cstring.h>
|
||||
|
||||
void _assert_callback(const char* expression, const char* file, int line, const char* function, const char* description);
|
||||
void _assert_callback(const fennec::cstring& expr, const fennec::cstring& file, int line, const fennec::cstring& func, const fennec::cstring& desc);
|
||||
|
||||
void _assert_impl(const char* expression, const char* file, int line, const char* function, const char* description, bool halt)
|
||||
void _assert_impl(const char* expr, size_t expr_l,
|
||||
const char* file, size_t file_l, int line,
|
||||
const char* func, size_t func_l,
|
||||
const char* desc, bool halt)
|
||||
{
|
||||
_assert_callback(expression, file, line, function, description);
|
||||
_assert_callback(
|
||||
fennec::cstring(expr, expr_l),
|
||||
fennec::cstring(file, file_l), line,
|
||||
fennec::cstring(func, func_l),
|
||||
fennec::cstring(desc, ::strlen(desc) + 1)
|
||||
);
|
||||
|
||||
if (halt) {
|
||||
::abort();
|
||||
|
||||
Reference in New Issue
Block a user