diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2023-07-31 17:42:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-31 20:42:21 -0400 |
| commit | 33ec543467f17900516d93dd4b7964b8f49d1951 (patch) | |
| tree | 426bd326b52d2a609d6f45cdf17a50162cbdc01b /lib/ultralib/src/debug/assert.c | |
| parent | 6d0c9276e8fc93e679d295b4e5f968da4b966a9b (diff) | |
Libultra OK (#20)
* Identify last 2 libultra files
* BSS left
* Update not built files
* libultra OK
* Makefile formating
* Identify last couple data files
* libultra section headers
* Paddings
* Fix one padding
* move non_shared to CLFAGS and ASFLAGS
* git subrepo pull --force lib/ultralib
subrepo:
subdir: "lib/ultralib"
merged: "b376559"
upstream:
origin: "git@github.com:decompals/ultralib.git"
branch: "main"
commit: "b376559"
git-subrepo:
version: "0.4.6"
origin: "https://github.com/ingydotnet/git-subrepo"
commit: "110b9eb"
* Remove duplicate -non_shared
* .hasm
* Jenkins
* GBIDEFINE
Diffstat (limited to 'lib/ultralib/src/debug/assert.c')
| -rw-r--r-- | lib/ultralib/src/debug/assert.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/ultralib/src/debug/assert.c b/lib/ultralib/src/debug/assert.c new file mode 100644 index 0000000..4bf6f1e --- /dev/null +++ b/lib/ultralib/src/debug/assert.c @@ -0,0 +1,10 @@ +#include "os.h" +#include "../os/osint.h" +#include "osint_debug.h" + +void __assertBreak(void); + +void __assert(const char* exp, const char* filename, int line) { + osSyncPrintf("\nASSERTION FAULT: %s, %d: \"%s\"\n", filename, line, exp); + __assertBreak; // Doesn't actually do anything, but is needed for matching +} |
