24 lines
470 B
C++
24 lines
470 B
C++
/*
|
|
* Copyright 2015 - 2025 gary@drinkingtea.net
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#if __has_include(<cassert>)
|
|
#include <cassert>
|
|
#else
|
|
#define assert(e) while (!(e));
|
|
#endif
|
|
|
|
#if __has_include(<cstdlib>)
|
|
#include <cstdlib>
|
|
#else
|
|
extern "C" {
|
|
[[noreturn]]
|
|
void abort();
|
|
}
|
|
#endif |