Files
core_zero/tjp/core/debug/Debug.h
Timothy Prepscius 996151a56a flatten 20260225
2026-02-25 12:43:06 -05:00

35 lines
579 B
C
Executable File

// 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