sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
module_debug.h
Go to the documentation of this file.
1
5
#ifndef _MODULE_DEBUG_H
6
#define _MODULE_DEBUG_H
7
8
//#define MINI_DRIVER
9
10
#ifndef MINI_DRIVER
11
#include <
stdio.h
>
12
#define M_PRINTF(format, args...) printf("BDM: " format, ##args)
13
#else
14
#define M_PRINTF(format, args...) do { } while(0)
15
#endif
16
17
#ifdef DEBUG
18
#define M_DEBUG M_PRINTF
19
#else
20
#define M_DEBUG(format, args...) do { } while(0)
21
#endif
22
23
// u64 when being used in a printf statement is split into two u32 values
24
#define U64_2XU32(val) \
25
u32 val##_u32[2]; \
26
memcpy(val##_u32, &val, sizeof(val##_u32))
27
28
#ifdef DEBUG
29
#define DEBUG_U64_2XU32(val) U64_2XU32(val)
30
#else
31
#define DEBUG_U64_2XU32(val) do { } while (0)
32
#endif
33
34
#endif
stdio.h
core
bdm
src
libbdm
include
module_debug.h
Generated by
1.18.0