Skip to content

Commit 0ee3324

Browse files
committed
Add LUA_TCDATA to util::to_string() helper
1 parent 8a9c4f0 commit 0ee3324

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,8 @@ pub(crate) unsafe fn to_string(state: *mut ffi::lua_State, index: c_int) -> Stri
10451045
ffi::LUA_TTHREAD => format!("<thread {:?}>", ffi::lua_topointer(state, index)),
10461046
#[cfg(feature = "luau")]
10471047
ffi::LUA_TBUFFER => format!("<buffer {:?}>", ffi::lua_topointer(state, index)),
1048+
#[cfg(feature = "luajit")]
1049+
ffi::LUA_TCDATA => format!("<cdata {:?}>", ffi::lua_topointer(state, index)),
10481050
_ => "<unknown>".to_string(),
10491051
}
10501052
}

0 commit comments

Comments
 (0)