(L: *mut lua_State)
| 25 | |
| 26 | #[unsafe(no_mangle)] |
| 27 | pub unsafe extern "C" fn luaopen_libhello(L: *mut lua_State) -> c_int { |
| 28 | lua_newtable(L); |
| 29 | |
| 30 | lua_pushcfunction(L, rust_add); |
| 31 | lua_setfield(L, -2, b"add\0".as_ptr() as _); |
| 32 | lua_pushcfunction(L, say_hello); |
| 33 | lua_setfield(L, -2, b"say_hello\0".as_ptr() as _); |
| 34 | 1 |
| 35 | } |
nothing calls this directly
no outgoing calls
no test coverage detected