2017-11-25 20:45:11 +01:00
|
|
|
/*
|
2019-08-03 19:43:48 +02:00
|
|
|
* This software is licensed under the terms of the MIT License.
|
2017-11-25 20:45:11 +01:00
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
2024-05-16 23:30:41 +02:00
|
|
|
* Copyright (c) 2011-2024, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2024, Andrei Alexeyev <akari@taisei-project.org>.
|
2017-11-25 20:45:11 +01:00
|
|
|
*/
|
|
|
|
|
2021-08-12 23:09:01 +02:00
|
|
|
#pragma once
|
2017-11-25 20:45:11 +01:00
|
|
|
#include "taisei.h"
|
|
|
|
|
2024-05-17 04:41:28 +02:00
|
|
|
// IWYU pragma: always_keep
|
|
|
|
|
|
|
|
#include "build_config.h" // IWYU pragma: export
|
|
|
|
#include "util/compat.h" // IWYU pragma: export
|
|
|
|
#include "util/assert.h" // IWYU pragma: export
|
|
|
|
#include "util/consideredharmful.h" // IWYU pragma: export
|
|
|
|
#include "memory/memory.h" // IWYU pragma: export
|
2017-11-25 20:45:11 +01:00
|
|
|
|
2019-01-25 01:02:56 +01:00
|
|
|
#ifdef TAISEI_BUILDCONF_DEVELOPER
|
|
|
|
// TODO: maybe rename this
|
2018-01-12 19:26:07 +01:00
|
|
|
#define DEBUG 1
|
2019-01-26 15:18:19 +01:00
|
|
|
#define IF_DEBUG(statement) do { statement } while(0)
|
2019-02-22 00:56:03 +01:00
|
|
|
#define IF_NOT_DEBUG(statement) ((void)0)
|
2019-01-26 15:18:19 +01:00
|
|
|
#else
|
2019-02-22 00:56:03 +01:00
|
|
|
#define IF_DEBUG(statement) ((void)0)
|
|
|
|
#define IF_NOT_DEBUG(statement) do { statement } while(0)
|
2017-11-25 20:45:11 +01:00
|
|
|
#endif
|
|
|
|
|
2018-04-12 16:08:48 +02:00
|
|
|
#ifdef TAISEI_BUILDCONF_LOG_FATAL_MSGBOX
|
|
|
|
#define LOG_FATAL_MSGBOX
|
|
|
|
#endif
|