mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-16 04:44:44 +00:00
Add log macros
- Add log macros required to match `Graph_GetNextGameState`
This commit is contained in:
parent
fed29c029c
commit
168d90b6b0
12 changed files with 31 additions and 37 deletions
|
@ -39,4 +39,13 @@
|
|||
(curState)->init = newInit; \
|
||||
(curState)->size = sizeof(newStruct);
|
||||
|
||||
#define LOG(exp, value, format, file, line) \
|
||||
LogUtils_LogThreadId(file, line); \
|
||||
osSyncPrintf(exp " = " format "\n", value);
|
||||
|
||||
#define LOG_ADDRESS(exp, value, file, line) LOG(exp, value, "%08x", file, line)
|
||||
#define LOG_STRING(exp, value, file, line) LOG(exp, value, "%s", file, line)
|
||||
#define LOG_TIME(exp, value, file, line) LOG(exp, value, "%lld", file, line)
|
||||
#define LOG_VALUE(exp, value, file, line) LOG(exp, value, "%d", file, line)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue