Vendor Teakra, make emulator own DSP RAM and add DSP RAM to fastmem (#806)
* DSP: Own DSP RAM and add it to fastmem * Vendor Teakra * Add MacOS support to fastmem * Fix MacOS fastmem paths * Fix iOS build
This commit is contained in:
11
third_party/teakra/src/crash.h
vendored
Normal file
11
third_party/teakra/src/crash.h
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
|
||||
[[noreturn]] inline void Assert(const char* expression, const char* file, int line) {
|
||||
std::fprintf(stderr, "Assertion '%s' failed, file '%s' line '%d'.", expression, file, line);
|
||||
std::abort();
|
||||
}
|
||||
|
||||
#define ASSERT(EXPRESSION) ((EXPRESSION) ? (void)0 : Assert(#EXPRESSION, __FILE__, __LINE__))
|
||||
#define UNREACHABLE() Assert("UNREACHABLE", __FILE__, __LINE__)
|
||||
Reference in New Issue
Block a user