[ox/std] Remove usage of stdlib from substitutes...

This commit is contained in:
Gary Talent 2019-06-16 00:52:02 -05:00
parent 47ce0408d5
commit 14a40bdcd6

View File

@ -8,14 +8,10 @@
#ifndef OX_USE_STDLIB #ifndef OX_USE_STDLIB
#include <cstdlib>
#include <stdio.h>
// weak link panic to ensure that it exists, but allow it to be overriden by // weak link panic to ensure that it exists, but allow it to be overriden by
// platform specific code // platform specific code
void __attribute__((weak)) panic(const char *msg) { void __attribute__((weak)) panic(const char*) {
printf("Unexpected state:\n%s", msg); while (1);
std::abort();
} }
extern "C" { extern "C" {