// This file is an alternative to <android/log.h>, but reuses // `android_LogPriority` and should not have conflicting identifiers. #include <android/log.h>
// These functions do not allocate memory to send data to the log.
__BEGIN_DECLS
// Formats a message to the log (priority 'fatal'), then aborts. // Implemented as a macro so that async_safe_fatal isn't on the stack when we crash: // we appear to go straight from the caller to abort, saving an uninteresting stack // frame. #define async_safe_fatal(...) \ do { \
async_safe_fatal_no_abort(__VA_ARGS__); \
abort(); \
} while (0) \
// These functions do return, so callers that want to abort, must do so themselves, // or use the macro above. void async_safe_fatal_no_abort(constchar* fmt, ...) __printflike(1, 2); void async_safe_fatal_va_list(constchar* prefix, constchar* fmt, va_list args);
// // Formatting routines for the C library's internal debugging. // Unlike the usual alternatives, these don't allocate, and they don't drag in all of stdio. // These are async signal safe, so they can be called from signal handlers. //
int async_safe_format_buffer(char* buf, size_t size, constchar* fmt, ...) __printflike(3, 4); int async_safe_format_buffer_va_list(char* buffer, size_t buffer_size, constchar* format, va_list args);
int async_safe_format_fd(int fd, constchar* format , ...) __printflike(2, 3); int async_safe_format_fd_va_list(int fd, constchar* format, va_list args); int async_safe_format_log(int priority, constchar* tag, constchar* fmt, ...) __printflike(3, 4); int async_safe_format_log_va_list(int priority, constchar* tag, constchar* fmt, va_list ap); int async_safe_write_log(int priority, constchar* tag, constchar* msg);
__END_DECLS
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.