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:
23
arm7/source/common.h
Normal file
23
arm7/source/common.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include <nds/ndstypes.h>
|
||||
#include "fat/ff.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "header.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
|
||||
|
||||
extern FATFS gFatFs;
|
||||
Reference in New Issue
Block a user