2019-07-17 00:49:47 +01:00
|
|
|
/*
|
2019-07-19 00:45:56 +01:00
|
|
|
* Copyright (c) 2019 Atmosphère-NX
|
2019-07-17 00:49:47 +01:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms and conditions of the GNU General Public License,
|
|
|
|
* version 2, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2019-07-19 00:45:56 +01:00
|
|
|
#pragma once
|
|
|
|
#include <stdarg.h>
|
2019-07-17 00:49:47 +01:00
|
|
|
|
2019-07-31 01:30:17 +01:00
|
|
|
#ifndef NDEBUG
|
2020-02-01 15:11:59 +00:00
|
|
|
#define DEBUG(...) debugLog(__VA_ARGS__)
|
|
|
|
#define DEBUGRAW(str) debugLogRaw(str)
|
2019-07-31 01:30:17 +01:00
|
|
|
#else
|
|
|
|
#define DEBUG(...)
|
2020-02-01 15:11:59 +00:00
|
|
|
#define DEBUGRAW(str)
|
2019-07-31 01:30:17 +01:00
|
|
|
#endif
|
|
|
|
|
2020-01-12 01:59:26 +00:00
|
|
|
void debugLogInit(void);
|
2020-02-01 15:11:59 +00:00
|
|
|
void debugLogRaw(const char *str);
|
2019-07-31 01:30:17 +01:00
|
|
|
int debugLog(const char *fmt, ...);
|