Skip to content

Commit 4ba263a

Browse files
committed
EFI: implement assert()
Signed-off-by: Stephan Mueller <smueller@chronox.de>
1 parent 5975202 commit 4ba263a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/api/ext_headers.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,10 @@ static inline int lc_get_time(time64_t *time_since_epoch)
207207
} while (0)
208208
#endif
209209

210-
//TODO: what is the assert macro in EFI?
211210
#ifndef assert
212211
#define assert(x) \
213212
if (x) { \
214-
; \
213+
Exit(EFI_ABORTED, 0, NULL); \
215214
}
216215
#endif
217216

0 commit comments

Comments
 (0)