mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Initial commit
This commit is contained in:
31
arm9/source/common.h
Normal file
31
arm9/source/common.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
#include <nds/ndstypes.h>
|
||||
#include "fat/ff.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "core/math/fixed.h"
|
||||
#include "core/math/SinTable.h"
|
||||
#include "globalHeap.h"
|
||||
#include "services/process/ProcessManager.h"
|
||||
#include "VBlank.h"
|
||||
#include "logger/ILogger.h"
|
||||
#include "core/TickCounter.h"
|
||||
#include "rng/RandomGenerator.h"
|
||||
|
||||
extern ProcessManager gProcessManager;
|
||||
extern ILogger* gLogger;
|
||||
extern RandomGenerator* gRandomGenerator;
|
||||
|
||||
#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