From 45956d1637930d2a9d784780bc217b6dfefa5df1 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Thu, 5 May 2016 16:59:17 -0400 Subject: [PATCH] the lua API is a nightmare --- sol/compatibility/5.1.0.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sol/compatibility/5.1.0.h b/sol/compatibility/5.1.0.h index ce91e2be..72ddd085 100644 --- a/sol/compatibility/5.1.0.h +++ b/sol/compatibility/5.1.0.h @@ -158,11 +158,11 @@ inline const char* kepler_lua_compat_get_string(lua_State* L, void* ud, size_t* 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; ls.s = buff; 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 */