Skip to main content

load_string

Function load_string 

Source
pub fn load_string(state: &mut LuaState, s: &[u8]) -> Result<i32, LuaError>
Expand description

Load a NUL-terminated byte-string as a Lua chunk.

C: LUALIB_API int luaL_loadstring(lua_State *L, const char *s)