We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f15a6c commit 36f2432Copy full SHA for 36f2432
packages/react-native-sandbox/cxx/SandboxLog.h
@@ -1,17 +1,8 @@
1
#pragma once
2
3
-#include <string>
4
-
5
-#ifdef __APPLE__
6
-#ifdef __OBJC__
+#if defined(__APPLE__) && defined(__OBJC__)
7
#import <React/RCTLog.h>
8
#define SANDBOX_LOG_WARN(fmt, ...) RCTLogWarn(@fmt, ##__VA_ARGS__)
9
-#else
10
-// C++ context on Apple — use stderr as fallback
11
-#include <cstdio>
12
-#define SANDBOX_LOG_WARN(fmt, ...) \
13
- fprintf(stderr, "[SandboxWarn] " fmt "\n", ##__VA_ARGS__)
14
-#endif
15
#elif defined(__ANDROID__)
16
#include <android/log.h>
17
#define SANDBOX_LOG_WARN(fmt, ...) \
0 commit comments