(state: *mut lua_State)
| 7 | // -------------------------- |
| 8 | |
| 9 | unsafe extern "C-unwind" fn rust_add(state: *mut lua_State) -> c_int { |
| 10 | let a = lua_tonumberx(state, 1, std::ptr::null_mut()); |
| 11 | let b = lua_tonumberx(state, 2, std::ptr::null_mut()); |
| 12 | lua_pushnumber(state, a + b); |
| 13 | return 1; |
| 14 | } |
| 15 | |
| 16 | unsafe extern "C-unwind" fn say_hello(state: *mut lua_State) -> c_int { |
| 17 | //println!("Hello from Rust!"); |
nothing calls this directly
no outgoing calls
no test coverage detected