(state: *mut lua_State)
| 14 | } |
| 15 | |
| 16 | unsafe 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 | // -------------------------- |
nothing calls this directly
no outgoing calls
no test coverage detected