mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
the lua API is a nightmare
This commit is contained in:
parent
2cfce0d8ce
commit
45956d1637
|
@ -158,11 +158,11 @@ inline const char* kepler_lua_compat_get_string(lua_State* L, void* ud, size_t*
|
||||||
return ls->s;
|
return ls->s;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int luaL_loadbufferx(lua_State* L, const char* buff, size_t size, const char* name, const char* mode) {
|
inline int luaL_loadbufferx(lua_State* L, const char* buff, size_t size, const char* name, const char*) {
|
||||||
kepler_lua_compat_get_string_view ls;
|
kepler_lua_compat_get_string_view ls;
|
||||||
ls.s = buff;
|
ls.s = buff;
|
||||||
ls.size = size;
|
ls.size = size;
|
||||||
return lua_load(L, kepler_lua_compat_get_string, &ls, name, mode);
|
return lua_load(L, kepler_lua_compat_get_string, &ls, name/*, mode*/);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* Lua 5.1 */
|
#endif /* Lua 5.1 */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user