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
#include <
stdio.h
>
8
#define M_PRINTF(format, args...) printf("BDM: " format, ##args)
9
#else
10
#define M_PRINTF(format, args...) do { } while(0)
11
#endif
12
13
#ifdef DEBUG
14
#define M_DEBUG M_PRINTF
15
#else
16
#define M_DEBUG(format, args...) do { } while(0)
17
#endif
18
19
// u64 when being used in a printf statement is split into two u32 values
20
#define U64_2XU32(val) \
21
u32 val##_u32[2]; \
22
memcpy(val##_u32, &val, sizeof(val##_u32))
23
24
#ifdef DEBUG
25
#define DEBUG_U64_2XU32(val) U64_2XU32(val)
26
#else
27
#define DEBUG_U64_2XU32(val) do { } while (0)
28
#endif
29
30
#endif
stdio.h
iop
fs
libbdm
src
include
module_debug.h
Generated on Thu Nov 14 2024 05:25:26 for PS2SDK by
1.9.8