flatten 20260225
This commit is contained in:
34
tjp/core/debug/Debug.h
Executable file
34
tjp/core/debug/Debug.h
Executable file
@@ -0,0 +1,34 @@
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2025 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../system/Debug.h"
|
||||
|
||||
#if defined(_DEBUG) || defined(DEBUG)
|
||||
#define xDebugLine() { int x = 0; (void)x; }
|
||||
#define IS_DEBUG() 1
|
||||
|
||||
#ifndef _DEBUG
|
||||
#define _DEBUG
|
||||
#endif
|
||||
|
||||
#ifndef DEBUG
|
||||
#define DEBUG
|
||||
#endif
|
||||
|
||||
#else
|
||||
#define xDebugLine() (void)0;
|
||||
#define IS_DEBUG() 0
|
||||
|
||||
#ifndef NDEBUG
|
||||
#define NDEBUG
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(DEBUG)
|
||||
#define DEBUG_ONLY(...) __VA_ARGS__
|
||||
#else
|
||||
#define DEBUG_ONLY(...)
|
||||
#endif
|
||||
Reference in New Issue
Block a user