| 65 | #endif |
| 66 | |
| 67 | void DebugLog::Log(LogType type, const StringView& message) |
| 68 | { |
| 69 | #if USE_CSHARP |
| 70 | if (CacheMethods()) |
| 71 | return; |
| 72 | |
| 73 | auto scriptsDomain = Scripting::GetScriptsDomain(); |
| 74 | MainThreadManagedInvokeAction::ParamsBuilder params; |
| 75 | params.AddParam(type); |
| 76 | params.AddParam(message, scriptsDomain); |
| 77 | #if BUILD_RELEASE |
| 78 | params.AddParam(StringView::Empty, scriptsDomain); |
| 79 | #else |
| 80 | const String stackTrace = Platform::GetStackTrace(1); |
| 81 | params.AddParam(stackTrace, scriptsDomain); |
| 82 | #endif |
| 83 | MainThreadManagedInvokeAction::Invoke(Internal_SendLog, params); |
| 84 | #endif |
| 85 | } |
| 86 | |
| 87 | void DebugLog::LogException(MObject* exceptionObject) |
| 88 | { |
no test coverage detected