MCPcopy Create free account
hub / github.com/TanTanDev/runity / warn

Function warn

rust/runity/src/logging.rs:84–89  ·  view source on GitHub ↗
(message: *const c_char)

Source from the content-addressed store, hash-verified

82
83// used from game dll
84#[no_mangle] pub extern fn warn(message: *const c_char) {
85 let message = unsafe {CStr::from_ptr(message)};
86 if let Ok(message) = message.to_str() {
87 log::warn!("{}", message);
88 }
89}
90
91#[no_mangle] pub extern fn info(message: *const c_char) {
92 let message = unsafe {CStr::from_ptr(message)};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected