MCPcopy Create free account
hub / github.com/defold/defold / ToAndroidPriority

Function ToAndroidPriority

engine/dlib/src/dlib/log.cpp:270–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268
269#ifdef ANDROID
270static android_LogPriority ToAndroidPriority(LogSeverity severity)
271{
272 switch (severity)
273 {
274 case LOG_SEVERITY_DEBUG:
275 return ANDROID_LOG_DEBUG;
276
277 case LOG_SEVERITY_USER_DEBUG:
278 return ANDROID_LOG_DEBUG;
279
280 case LOG_SEVERITY_INFO:
281 return ANDROID_LOG_INFO;
282
283 case LOG_SEVERITY_WARNING:
284 return ANDROID_LOG_WARN;
285
286 case LOG_SEVERITY_ERROR:
287 return ANDROID_LOG_ERROR;
288
289 case LOG_SEVERITY_FATAL:
290 return ANDROID_LOG_FATAL;
291
292 default:
293 return ANDROID_LOG_ERROR;
294 }
295}
296#endif
297
298static void DoLogPlatform(LogSeverity severity, const char* output, int output_len)

Callers 1

DoLogPlatformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected