Skip to content

Commit

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

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

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

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

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

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

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

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

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

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

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

return ret;
}

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

0 comments on commit 0549f93

Please sign in to comment.