- events tested and implemented multithreading support through mpscq

This commit is contained in:
2025-12-23 12:24:23 -05:00
parent 1f6637408d
commit 184bc7fcdf
12 changed files with 281 additions and 31 deletions

View File

@@ -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();
}
}