- events tested and implemented multithreading support through mpscq
This commit is contained in:
@@ -16,17 +16,24 @@
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
// =====================================================================================================================
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fennec/core/logger.h>
|
||||
#include <cpptrace/cpptrace.hpp>
|
||||
|
||||
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)
|
||||
{
|
||||
// Skip
|
||||
// __assert_callback
|
||||
// __assert_impl
|
||||
printf("Assert failed: \"%s\" \n"
|
||||
fennec::logger::log(fennec::format(""
|
||||
"Assert failed: \"{}\" \n"
|
||||
"At {}:{} in {} \n"
|
||||
"Description: {} \n"
|
||||
"Stacktrace: \n",
|
||||
expr, file, line, func, desc
|
||||
));
|
||||
/*printf("Assert failed: \"%s\" \n"
|
||||
"At %s:%d in %s \n"
|
||||
"Description: %s \n",
|
||||
expression, file, line, function, description);
|
||||
expression, file, line, function, description);*/
|
||||
cpptrace::generate_trace(2).print();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user