PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
module_debug.h
1
#ifndef _MODULE_DEBUG_H
2
#define _MODULE_DEBUG_H
3
4
// #define MINI_DRIVER
5
6
#ifndef MINI_DRIVER
7
#define M_PRINTF(format, args...) printf("BDM: " format, ##args)
8
#else
9
#define M_PRINTF(format, args...) \
10
do { \
11
} while (0)
12
#endif
13
14
#ifdef DEBUG
15
#define M_DEBUG M_PRINTF
16
#else
17
#define M_DEBUG(format, args...) \
18
do { \
19
} while (0)
20
#endif
21
22
// u64 when being used in a printf statement is split into two u32 values
23
#define U64_2XU32(val) \
24
u32 val##_u32[2]; \
25
memcpy(val##_u32, &val, sizeof(val##_u32))
26
27
#ifdef DEBUG
28
#define DEBUG_U64_2XU32(val) U64_2XU32(val)
29
#else
30
#define DEBUG_U64_2XU32(val) do { } while (0)
31
#endif
32
33
#endif
iop
fs
bdm
src
include
module_debug.h
Generated on Thu Nov 14 2024 05:25:26 for PS2SDK by
1.9.8