Mario Kart 64
Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1#ifndef _DEBUG_H_
2#define _DEBUG_H_
3
4#include <ultra64.h>
5#include <defines.h>
6
17#define DVDL 0
18#if DVDL
19
20#define CHARACTER_BUFFER_SIZE 200 // size of the string buffer
21
26#define TEXT_Y_POSSITION -0x8
27#define TEXT_X_POSSITION -0x5
28
29// flags
30#define DISPLAY_DECIMAL_NUMBER 0x1
31#define DISPLAY_HEXIDECIMAL_NUMBER 0x2
32#define DISPLAY_OCTAL_NUMBER 0x4
33#define DISPLAY_BINARY_NUMBER 0x8
34#define DISPLAY_SIGNED_NUMBER 0x10
35#define DISPLAY_FLOAT_AS_TYPE 0x20
36#define DISPLAY_FLOAT_WITH_ROUNDING 0x40
37#define DISPLAY_FLOAT_NUMBER 0x80
38
39#define HEXIDECIMAL 16
40#define DECIMAL 10
41#define OCTAL 8
42#define BINARY 2
43
48typedef struct
49{
50 char *variableName; // name of the variable to be displayed
51 void *variablePointer; // pointer to the variable so it can display it
52 u8 variableSize; // size of the variable to make up for templates from C++
53 u8 variableFlag; // flag to change how the variable is displayed
54 char buffer[CHARACTER_BUFFER_SIZE]; // when converting a variable to string this will be filled
55 char *characterBuffer; // silly pointer so i don't need to do stuff
56} variableWatchAttributes;
57
65extern variableWatchAttributes gMainVariableWatchList[];
66
73void display_dvdl(void);
74
75#endif
76
77#endif
unsigned char u8
Definition ultratypes.h:12