altra64/inc/debug.h

20 lines
592 B
C
Raw Normal View History

2017-10-06 09:48:52 -04:00
//
// Copyright (c) 2017 The Altra64 project contributors
// See LICENSE file in the project root for full license information.
//
2017-10-11 11:53:18 -04:00
#ifndef _DEBUG_H
#define _DEBUG_H
#ifdef DEBUG
#define TRACEF(disp, text, ...) dbg_printf(disp, text, __VA_ARGS__);
#define TRACE(disp, text) printText(text, 3, -1, disp);
#else
#define TRACEF(disp, text, ...) do { if (0) dbg_printf(disp, text, __VA_ARGS__); } while (0)
#define TRACE(disp, text) do { if (0) printText(text, 3, -1, disp); } while (0)
#endif
2017-10-11 11:53:18 -04:00
void dbg_printf(display_context_t disp, const char *fmt, ...);
2017-10-11 11:53:18 -04:00
#endif