[ox/std] Remove usage of stdlib from substitutes...
This commit is contained in:
parent
47ce0408d5
commit
14a40bdcd6
8
deps/ox/src/ox/std/substitutes.cpp
vendored
8
deps/ox/src/ox/std/substitutes.cpp
vendored
@ -8,14 +8,10 @@
|
||||
|
||||
#ifndef OX_USE_STDLIB
|
||||
|
||||
#include <cstdlib>
|
||||
#include <stdio.h>
|
||||
|
||||
// weak link panic to ensure that it exists, but allow it to be overriden by
|
||||
// platform specific code
|
||||
void __attribute__((weak)) panic(const char *msg) {
|
||||
printf("Unexpected state:\n%s", msg);
|
||||
std::abort();
|
||||
void __attribute__((weak)) panic(const char*) {
|
||||
while (1);
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user