mirror of
https://github.com/open-goal/jak-project
synced 2026-05-30 08:56:59 -04:00
bf83f2442d
- Rough start of the SQLite integration to facilitate the SQL queries - Cleanup and disable a little bit of code so the game no longer crashes when entering the editor - Implement some of the mouse data stuff  https://user-images.githubusercontent.com/13153231/202881484-399747e7-dcdb-4e09-93e9-b561a45c8a18.mp4 This is a very old branch so best to get it merged now that it's at a decent point so it can be iterated on.
47 lines
1.5 KiB
C++
Vendored
Generated
47 lines
1.5 KiB
C++
Vendored
Generated
/**
|
|
* @file Assertion.h
|
|
* @ingroup SQLiteCpp
|
|
* @brief Definition of the SQLITECPP_ASSERT() macro.
|
|
*
|
|
* Copyright (c) 2012-2022 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 <cassert>
|
|
|
|
|
|
/**
|
|
* 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 int 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
|