summaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.rs b/src/util.rs
index 6c18218..1f49378 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -588,11 +588,11 @@ unsafe fn get_panic_metatable(state: *mut ffi::lua_State) -> c_int {
);
ffi::lua_pushvalue(state, -2);
- push_string(state, "__gc");
+ ffi::lua_pushstring(state, cstr!("__gc"));
ffi::lua_pushcfunction(state, userdata_destructor::<WrappedPanic>);
ffi::lua_settable(state, -3);
- push_string(state, "__metatable");
+ ffi::lua_pushstring(state, cstr!("__metatable"));
ffi::lua_pushboolean(state, 0);
ffi::lua_settable(state, -3);