From 8f0dda5eab181b0f14f2652b4e984aaaae3f258c Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 27 Jun 2022 18:27:13 -0700 Subject: Start from a clean slate --- 3rdparty/sqlitecpp/source/SQLiteCpp/Assertion.h | 46 ------------------------- 1 file changed, 46 deletions(-) delete mode 100644 3rdparty/sqlitecpp/source/SQLiteCpp/Assertion.h (limited to '3rdparty/sqlitecpp/source/SQLiteCpp/Assertion.h') diff --git a/3rdparty/sqlitecpp/source/SQLiteCpp/Assertion.h b/3rdparty/sqlitecpp/source/SQLiteCpp/Assertion.h deleted file mode 100644 index b6d00be..0000000 --- a/3rdparty/sqlitecpp/source/SQLiteCpp/Assertion.h +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @file Assertion.h - * @ingroup SQLiteCpp - * @brief Definition of the SQLITECPP_ASSERT() macro. - * - * Copyright (c) 2012-2021 Sebastien Rombauts (sebastien.rombauts@gmail.com) - * - * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt - * or copy at http://opensource.org/licenses/MIT) - */ -#pragma once - -#include - - -/** - * SQLITECPP_ASSERT SQLITECPP_ASSERT() is used in destructors, where exceptions shall not be thrown - * - * Define SQLITECPP_ENABLE_ASSERT_HANDLER at the project level - * and define a SQLite::assertion_failed() assertion handler - * to tell SQLiteC++ to use it instead of assert() when an assertion fail. -*/ -#ifdef SQLITECPP_ENABLE_ASSERT_HANDLER - -// if an assert handler is provided by user code, use it instead of assert() -namespace SQLite -{ - // declaration of the assert handler to define in user code - void assertion_failed(const char* apFile, const long apLine, const char* apFunc, - const char* apExpr, const char* apMsg); - -#ifdef _MSC_VER - #define __func__ __FUNCTION__ -#endif -// call the assert handler provided by user code -#define SQLITECPP_ASSERT(expression, message) \ - if (!(expression)) SQLite::assertion_failed(__FILE__, __LINE__, __func__, #expression, message) -} // namespace SQLite - -#else - -// if no assert handler provided by user code, use standard assert() -// (note: in release mode assert() does nothing) -#define SQLITECPP_ASSERT(expression, message) assert(expression && message) - -#endif -- cgit v1.2.3-70-g09d2