Skip to content

Commit eecc835

Browse files
committed
improve documentation on __android_log_write
1 parent 51e282b commit eecc835

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/android/android.zig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ const android_builtin = struct {
1313
pub const package_name: [:0]const u8 = ab.package_name;
1414
};
1515

16+
/// Writes the constant string text to the log, with priority prio and tag tag.
17+
/// Returns: 1 if the message was written to the log, or -EPERM if it was not; see __android_log_is_loggable().
18+
/// Source: https://developer.android.com/ndk/reference/group/logging
1619
extern "log" fn __android_log_write(prio: c_int, tag: [*c]const u8, text: [*c]const u8) c_int;
1720

1821
/// Alternate panic implementation that calls __android_log_write so that you can see the logging via "adb logcat"

0 commit comments

Comments
 (0)