Added Debug detection
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef NDEBUG
|
||||
#define PB_DEBUG
|
||||
namespace PB::Renderer
|
||||
{
|
||||
constexpr bool DEBUG_MODE = true;
|
||||
constexpr const char* MODE_NAME = "DEBUG";
|
||||
}
|
||||
#else
|
||||
#define PB_RELEASE
|
||||
namespace PB::Renderer
|
||||
{
|
||||
constexpr bool DEBUG_MODE = false;
|
||||
constexpr const char* MODE_NAME = "RELEASE";
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Includes general project .h files */
|
||||
|
||||
#include "RendererTypes.h"
|
||||
|
||||
Reference in New Issue
Block a user