[fdb] support C++ compiler

This commit is contained in:
朱天龙 (Armink) 2021-04-12 20:21:56 +08:00 committed by GitHub
parent 3cbc868f0e
commit 165c1b7d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ extern "C" {
#ifndef FDB_PRINT #ifndef FDB_PRINT
#define FDB_PRINT(...) printf(__VA_ARGS__) #define FDB_PRINT(...) printf(__VA_ARGS__)
#endif #endif
#define FDB_LOG_PREFIX1() FDB_PRINT("[FlashDB]"FDB_LOG_TAG) #define FDB_LOG_PREFIX1() FDB_PRINT("[FlashDB]" FDB_LOG_TAG)
#define FDB_LOG_PREFIX2() FDB_PRINT(" ") #define FDB_LOG_PREFIX2() FDB_PRINT(" ")
#define FDB_LOG_PREFIX() FDB_LOG_PREFIX1();FDB_LOG_PREFIX2() #define FDB_LOG_PREFIX() FDB_LOG_PREFIX1();FDB_LOG_PREFIX2()
#ifdef FDB_DEBUG_ENABLE #ifdef FDB_DEBUG_ENABLE