We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82f7be0 commit 0d43196Copy full SHA for 0d43196
app/src/log_android.cc
@@ -20,20 +20,23 @@
20
#include <android/log.h>
21
#endif // !defined(FIREBASE_ANDROID_FOR_DESKTOP)
22
23
+#if !defined(FIREBASE_NAMESPACE)
24
+#define FIREBASE_NAMESPACE firebase
25
+#endif
26
+
27
+#define STR_EXPAND(x) #x
28
+#define STR(x) STR_EXPAND(x)
29
30
#include <assert.h>
31
#include <jni.h>
32
#include <stdarg.h>
33
#include <stdio.h>
34
35
#include "app/src/util_android.h"
36
-#if !defined(FIREBASE_NAMESPACE)
-#define FIREBASE_NAMESPACE firebase
-#endif
-
37
namespace FIREBASE_NAMESPACE {
38
-const char* kDefaultTag = "firebase";
39
+const char* kDefaultTag = STR(FIREBASE_NAMESPACE);
40
41
// TODO(zxu): Instead of linking on log_stdio, mock the __android_log_vprint
42
// and use the logic here.
0 commit comments