Skip to content

Commit

Permalink
Use luaL_loadbufferx directly
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 committed Apr 13, 2024
1 parent 93bb4c6 commit b47594c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ bool interpreter::load_script(const char* buffer, int len, const char* script_na
if(!buffer)
return false;
++no_action;
if(ensure_luaL_stack(luaL_loadbuffer, current_state, buffer, len, script_name) != LUA_OK
if(ensure_luaL_stack(luaL_loadbufferx, current_state, buffer, len, script_name, nullptr) != LUA_OK
|| lua_pcall(current_state, 0, 0, 0) != LUA_OK) {
pduel->handle_message(lua_get_string_or_empty(current_state, -1), OCG_LOG_TYPE_ERROR);
lua_pop(current_state, 1);
Expand Down
8 changes: 0 additions & 8 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ if not subproject then
filter "action:vs*"
flags "MultiProcessorCompile"
vectorextensions "SSE2"
if usestandardpreprocessor then
usestandardpreprocessor "On"
end
if _ACTION=="vs2017" then
buildoptions "-experimental:preprocessor"
else
buildoptions "-Zc:preprocessor"
end

filter "action:not vs*"
buildoptions "-fno-strict-aliasing"
Expand Down

0 comments on commit b47594c

Please sign in to comment.