mirror of
https://github.com/pret/pokeemerald.git
synced 2026-10-01 22:38:10 -05:00
Updated Debugging using printf (markdown)
@@ -23,7 +23,7 @@ Like you would use `printf` from the C standard library. View `man 3 printf` or
|
||||
u32 a = 42;
|
||||
DebugPrintf("a = %d. But also a = 0x%x", a, a);
|
||||
```
|
||||
should print the following string to the log: `a = 42. But also a = 0x2a`, since `%ud`, `%ux` can be used to print unsigned decimal / hexadecimal integers respectively.
|
||||
should print the following string to the log: `a = 42. But also a = 0x2a`, since `%d`, `%x` can be used to print unsigned decimal / hexadecimal integers respectively.
|
||||
|
||||
Additionally if you are using the default configuration, a custom format option `%S` is added, which will print strings from the game, e.g.:
|
||||
```c
|
||||
|
||||
Reference in New Issue
Block a user