Newer
Older
Tardis / lang / debug.h
// SPDX-License-Identifier: MIT
// Copyright (c) 2024 John Watts and the LuminaSensum contributors

#ifndef DEBUG_H
#define DEBUG_H

#include "types.h"

#if DEBUG_MSG == 1

// Prints a message to stderr if DEBUG_MSG is 1
void debug_msg(const char *restrict format, ...);

#else

// Do nothing if DEBUG_MSG is 0
#define debug_msg(...)

#endif

#endif