mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[panic] Allow assert/panic to take optional user cpu_state
In places where the "user" state is available, like interrupt handlers, panic() and kassert() can now take an optional pointer to that user cpu_state structure, and the panic handler will print that out as well.
This commit is contained in:
@@ -9,5 +9,5 @@ void const *symbol_table = nullptr;
|
||||
|
||||
extern "C"
|
||||
void _PDCLIB_assert(const char *message, const char *function, const char *file, unsigned line) {
|
||||
panic::panic(message, function, file, line);
|
||||
panic::panic(message, nullptr, function, file, line);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user