MCPcopy Index your code
hub / github.com/AndroidPatch/Module-Template-Lua / say_hello

Function say_hello

my_lua_module/src/lib.rs:16–20  ·  view source on GitHub ↗
(state: *mut lua_State)

Source from the content-addressed store, hash-verified

14}
15
16unsafe extern "C-unwind" fn say_hello(state: *mut lua_State) -> c_int {
17 //println!("Hello from Rust!");
18 lua_pushstring(state, b"Hello from Rust!\0".as_ptr() as *const _);
19 1
20}
21// --------------------------
22// Lua require("hello") 时执行的入口
23// --------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected