mirror of
https://github.com/parasyte/alt64
synced 2024-11-15 13:45:01 -05:00
6e73f0604e
(for debug purposes, of course) saves being inline!!!
20 lines
638 B
C
20 lines
638 B
C
//
|
|
// Copyright (c) 2017 The Altra64 project contributors
|
|
// See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
#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__); sleep(5000); } while (0)
|
|
#define TRACE(disp, text) do { if (0) printText(text, 3, -1, disp); } didplay_show(disp); sleep(5000); while (0)
|
|
#endif
|
|
|
|
void dbg_printf(display_context_t disp, const char *fmt, ...);
|
|
|
|
#endif
|