Skip to content

Commit c979123

Browse files
Googlera-maurice
authored andcommitted
Use Macro to define firebase namespace
PiperOrigin-RevId: 259554433
1 parent 3bcda50 commit c979123

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/src/log_android_callback.cc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
#include "app/src/log.h"
2323
#include "app/src/util_android.h"
2424

25-
namespace firebase {
25+
#if !defined(FIREBASE_NAMESPACE)
26+
#define FIREBASE_NAMESPACE firebase
27+
#endif
28+
29+
namespace FIREBASE_NAMESPACE {
2630

2731
// Called from com.google.firebase.app.internal.cpp.Log.
2832
extern "C" JNIEXPORT void JNICALL
@@ -47,4 +51,5 @@ Java_com_google_firebase_app_internal_cpp_Log_nativeLog(
4751
cmsg.c_str());
4852
}
4953

50-
} // namespace firebase
54+
// NOLINTNEXTLINE - allow namespace overridden
55+
} // namespace FIREBASE_NAMESPACE

0 commit comments

Comments
 (0)