Skip to content

Commit 5d293c0

Browse files
committed
fix: add pragma once to logs.hpp
1 parent 8a4bec1 commit 5d293c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package/cpp/logs.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
#pragma once
2+
3+
#define LOG_TAG "react-native-nitro-sqlite"
4+
15
#ifdef ANDROID
26
// LOGS ANDROID
37
#include <android/log.h>
4-
#define LOG_TAG "react-native-nitro-sqlite"
58
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)
69
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
710
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
@@ -11,7 +14,6 @@
1114
#else
1215
// LOGS NO ANDROID
1316
#include <stdio.h>
14-
#define LOG_TAG "react-native-nitro-sqlite"
1517
#define LOGV(...) \
1618
printf(" "); \
1719
printf(__VA_ARGS__); \

0 commit comments

Comments
 (0)