[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
|
#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" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user