Skip to content

Commit

Permalink
Add ifndef _FINALROM to kmcprintf to avoid building when not debug ve…
Browse files Browse the repository at this point in the history
…rsion
  • Loading branch information
hensldm committed Dec 26, 2024
1 parent 2717d45 commit 4e68ece
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/error/kmcprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "ultraerror.h"
#include "../libc/xstdio.h"

#ifndef _FINALROM

extern u32 __kmc_pt_mode;

static void* proutSyncPrintf(void* str, const char* buf, size_t n) {
Expand Down Expand Up @@ -244,3 +246,5 @@ static void kmcErrorHandler(s16 code, s16 numArgs, ...) {

va_end(ap);
}

#endif

0 comments on commit 4e68ece

Please sign in to comment.