Add BEAST_FILEANDLINE_ macro for warning pragmas

This commit is contained in:
Vinnie Falco
2013-06-21 09:33:48 -07:00
parent cdc28c3fcf
commit 68ceab0f63
7 changed files with 18 additions and 22 deletions

View File

@@ -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")

View File

@@ -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