| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fbf5bee commit ebe6a55
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,10 @@ | |||
| 10 | 10 | #include "node_v8_platform-inl.h" | |
| 11 | 11 | #include "util-inl.h" | |
| 12 | 12 | ||
| 13 | + #ifdef __ANDROID__ | ||
| 14 | + #include <android/log.h> | ||
| 15 | + #endif | ||
| 16 | + | ||
| 13 | 17 | namespace node { | |
| 14 | 18 | ||
| 15 | 19 | using errors::TryCatchScope; | |
@@ -426,6 +430,8 @@ void PrintErrorString(const char* format, ...) { | |||
| 426 | 430 | // Don't include the null character in the output | |
| 427 | 431 | CHECK_GT(n, 0); | |
| 428 | 432 | WriteConsoleW(stderr_handle, wbuf.data(), n - 1, nullptr, nullptr); | |
| 433 | + #elif defined(__ANDROID__) | ||
| 434 | + __android_log_vprint(ANDROID_LOG_ERROR, "nodejs", format, ap); | ||
| 429 | 435 | #else | |
| 430 | 436 | vfprintf(stderr, format, ap); | |
| 431 | 437 | #endif | |
| Back | FazBrowse Home | New Git URL |
0 commit comments