ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
debug.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
16 #ifndef __DEBUG_H__
17 #define __DEBUG_H__
18 
19 #include <tamtypes.h>
20 
21 #define DEBUG_BGCOLOR(col) *((u64 *) 0x120000e0) = (u64) (col)
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 void init_scr(void);
28 void scr_printf(const char *, ...) __attribute__((format(printf,1,2)));
29 void scr_putchar(int x, int y, u32 color, int ch);
30 void ps2GetStackTrace(unsigned int* results,int max);
31 void scr_setXY(int x, int y);
32 int scr_getX(void);
33 int scr_getY(void);
34 void scr_clear(void);
35 void scr_setbgcolor(u32 color);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif /* __DEBUG_H__ */
int scr_getX(void)
Definition: scr_printf.c:303
void init_scr(void)
Definition: scr_printf.c:185
void ps2GetStackTrace(unsigned int *results, int max)
Definition: callstack.c:119
void scr_setXY(int x, int y)
Definition: scr_printf.c:297
void scr_printf(const char *,...)
Definition: scr_printf.c:252
void scr_clear(void)
Definition: scr_printf.c:313
void scr_setbgcolor(u32 color)
Definition: scr_printf.c:180
void scr_putchar(int x, int y, u32 color, int ch)
Definition: scr_printf.c:210
int scr_getY(void)
Definition: scr_printf.c:308
s32 x
Definition: libmouse.c:34
s32 y
Definition: libmouse.c:34
#define max(a, b)
Definition: standard.h:57
unsigned int u32
Definition: tamtypes.h:30