mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add BEAST_FILEANDLINE_ macro for warning pragmas
This commit is contained in:
@@ -48,11 +48,6 @@
|
||||
*/
|
||||
//#define SQLITE_THREADSAFE 2
|
||||
|
||||
// VFALCO TODO Move this into Beast
|
||||
#define BEAST_PP_STR2_(x) #x
|
||||
#define BEAST_PP_STR1_(x) BEAST_PP_STR2_(x)
|
||||
#define BEAST_FILEANDLINE_ __FILE__ "("BEAST_PP_STR1_(__LINE__)"): warning:"
|
||||
|
||||
// VFALCO TODO We should try running with SQLITE_THREADSAFE==2 and see what happens.
|
||||
#if SQLITE_THREADSAFE != 2
|
||||
#pragma message(BEAST_FILEANDLINE_"Possible performance issue, SQLITE_THREADSAFE != 2")
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#ifndef RIPPLE_SQLITE_RIPPLEHEADER
|
||||
#define RIPPLE_SQLITE_RIPPLEHEADER
|
||||
|
||||
// Include this directly because we compile under both C and C++
|
||||
#include "beast/modules/beast_core/system/beast_TargetPlatform.h"
|
||||
|
||||
#if ! RIPPLE_SQLITE_MODULE_INCLUDED
|
||||
|
||||
Reference in New Issue
Block a user