From 6c8d0db34bd485084ffb2108620b396c8056251e Mon Sep 17 00:00:00 2001 From: Clement Sibille Date: Sun, 9 Jun 2024 01:05:57 +0900 Subject: Fix Playdate support --- src/lisiblestd/assert.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/lisiblestd/assert.h') 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 -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) \ -- cgit v1.2.3