Skip to content

Commit

Permalink
Revert "Inline dbg_hexa"
Browse files Browse the repository at this point in the history
This reverts commit 0549f93.
  • Loading branch information
RocketRobz committed Nov 26, 2023
1 parent 0549f93 commit b6c0586
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
7 changes: 2 additions & 5 deletions hb/common/include/debug_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@
#define DEBUG_FILE_H

#include "my_fat.h"
#include "hex.h"

u32 dbg_printf(const char* message);
static inline u32 dbg_hexa(u32 n) {
return dbg_printf(tohex(n));
}
void enableDebug(const aFile* debugFileCluster);
u32 dbg_hexa(u32 n);
void enableDebug(aFile debugFileCluster);

#endif // DEBUG_FILE_H
5 changes: 5 additions & 0 deletions hb/common/source/debug_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <string.h>
#include <nds/debug.h>
#include "my_fat.h"
#include "hex.h"

static bool _debug = false;
static aFile _debugFileCluster;
Expand All @@ -45,4 +46,8 @@ u32 dbg_printf(const char* message) {
return ret;
}

u32 dbg_hexa(u32 n) {
return dbg_printf(tohex(n));
}

#endif
5 changes: 1 addition & 4 deletions retail/common/include_fat/debug_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@
#define DEBUG_FILE_H

#include "my_fat.h"
#include "hex.h"

u32 dbg_printf(const char* message);
static inline u32 dbg_hexa(u32 n) {
return dbg_printf(tohex(n));
}
u32 dbg_hexa(u32 n);
void enableDebug(const aFile* debugFileCluster);

#endif // DEBUG_FILE_H
5 changes: 5 additions & 0 deletions retail/common/source/debug_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <string.h>
#include <nds/debug.h>
#include "my_fat.h"
#include "hex.h"

static bool _debug = false;
static aFile _debugFileCluster;
Expand All @@ -44,3 +45,7 @@ u32 dbg_printf(const char* message) {

return ret;
}

u32 dbg_hexa(u32 n) {
return dbg_printf(tohex(n));
}

0 comments on commit b6c0586

Please sign in to comment.