summaryrefslogtreecommitdiffstats
path: root/src/lisiblestd/assert.h
diff options
context:
space:
mode:
authorClement Sibille <clements+github@lisible.xyz>2024-06-09 01:05:57 +0900
committerClement Sibille <clements+github@lisible.xyz>2024-06-09 01:05:57 +0900
commit6c8d0db34bd485084ffb2108620b396c8056251e (patch)
tree71c37a768a8f5c174778f2a3fbc3149be5ba473f /src/lisiblestd/assert.h
parentff2cfc706efd88c2e30fdb4c27ddad3263227367 (diff)
Fix Playdate support
Diffstat (limited to 'src/lisiblestd/assert.h')
-rw-r--r--src/lisiblestd/assert.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lisiblestd/assert.h b/src/lisiblestd/assert.h
index 15026f9..2babb6d 100644
--- a/src/lisiblestd/assert.h
+++ b/src/lisiblestd/assert.h
@@ -5,21 +5,19 @@
extern void exit(int);
-
-
#ifdef LSTD_PLATFORM_PLAYDATE
#include <pd_api.h>
-extern PlaydateAPI* pd;
+extern PlaydateAPI *pd;
#define LSTD_ASSERT(expr) \
do { \
if (!(expr)) { \
- pd->system->error("Assertion failed:\n\t%s", #expr); \
+ pd->system->error("Assertion failed: %s", #expr); \
} \
} while (0)
#define LSTD_UNIMPLEMENTED() \
do { \
- pd->system->error("Unimpemented code reached"); \
+ pd->system->error("Unimpemented code reached"); \
} while (0)
#else
#define LSTD_ASSERT(expr) \
Go back to lisible.xyz