mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
Initial commit
This commit is contained in:
22
arm9/source/common.h
Normal file
22
arm9/source/common.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include <nds.h>
|
||||
|
||||
extern u16 gIsDsiMode;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "globalHeap.h"
|
||||
#include "logger/ILogger.h"
|
||||
|
||||
extern ILogger* gLogger;
|
||||
|
||||
#define MAX_COMPILED_LOG_LEVEL LogLevel::All
|
||||
|
||||
#define LOG_FATAL(...) if (LogLevel::Fatal < MAX_COMPILED_LOG_LEVEL) gLogger->Log(LogLevel::Fatal, __VA_ARGS__)
|
||||
#define LOG_ERROR(...) if (LogLevel::Error < MAX_COMPILED_LOG_LEVEL) gLogger->Log(LogLevel::Error, __VA_ARGS__)
|
||||
#define LOG_WARNING(...) if (LogLevel::Warning < MAX_COMPILED_LOG_LEVEL) gLogger->Log(LogLevel::Warning, __VA_ARGS__)
|
||||
#define LOG_INFO(...) if (LogLevel::Info < MAX_COMPILED_LOG_LEVEL) gLogger->Log(LogLevel::Info, __VA_ARGS__)
|
||||
#define LOG_DEBUG(...) if (LogLevel::Debug < MAX_COMPILED_LOG_LEVEL) gLogger->Log(LogLevel::Debug, __VA_ARGS__)
|
||||
#define LOG_TRACE(...) if (LogLevel::Trace < MAX_COMPILED_LOG_LEVEL) gLogger->Log(LogLevel::Trace, __VA_ARGS__)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user