Skip to content

Commit 9611d33

Browse files
committed
setup nw4hbm debug define
1 parent 71c6d7c commit 9611d33

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

configure.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,14 @@ def RevolutionLib(lib_name: str, objects: List[Object]) -> Dict[str, Any]:
488488
"progress_category": "sdk",
489489
"objects": objects,
490490
}
491+
elif config.version == "RZDE01_00":
492+
return {
493+
"lib": lib_name,
494+
"mw_version": "GC/3.0a3",
495+
"cflags": [*cflags_revolution_retail, "-DSDK_SEP2006", "-DNW4HBM_DEBUG"],
496+
"progress_category": "sdk",
497+
"objects": objects,
498+
}
491499
else:
492500
return {
493501
"lib": lib_name,

src/revolution/homebuttonLib/nw4hbm/db/assert.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@ namespace nw4hbm {
3030
} // namespace db
3131
} // namespace nw4r
3232

33+
#if NW4HBM_DEBUG
3334
#define NW4R_DB_WARNING(line, exp, ...) \
3435
(void)((exp) || (nw4hbm::db::detail::Warning(__FILE__, line, __VA_ARGS__), 0))
35-
3636
#define NW4R_DB_ASSERTMSG(line, exp, ...) \
3737
(void)((exp) || (nw4hbm::db::detail::Panic(__FILE__, line, __VA_ARGS__), 0))
38-
38+
#else
39+
#define NW4R_DB_WARNING(line, exp, ...) (void)0
40+
#define NW4R_DB_ASSERTMSG(line, exp, ...) (void)0
41+
#endif
3942

4043
#define NW4R_ASSERT(line, exp) \
4144
NW4R_DB_ASSERTMSG(line, (exp), "Failed assertion " #exp)

0 commit comments

Comments
 (0)