mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 04:02:25 +00:00
Simplify runtime error reporting and move to platform common source.
This commit is contained in:
parent
ed7043324d
commit
716240bdd6
205 changed files with 986 additions and 1063 deletions
|
|
@ -103,11 +103,11 @@ extern void Platform_OSFree (ADDRESS addr);
|
|||
|
||||
// Assertions and Halts
|
||||
|
||||
extern void Platform_Halt(INT32 x);
|
||||
extern void Platform_AssertFail(INT32 x);
|
||||
extern void Modules_Halt(INT32 x);
|
||||
extern void Modules_AssertFail(INT32 x);
|
||||
|
||||
#define __HALT(x) Platform_Halt(x)
|
||||
#define __ASSERT(cond, x) if (!(cond)) Platform_AssertFail((INT32)(x))
|
||||
#define __HALT(x) Modules_Halt((INT32)(x))
|
||||
#define __ASSERT(cond, x) if (!(cond)) Modules_AssertFail((INT32)(x))
|
||||
|
||||
|
||||
// Index checking
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue