diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-17 18:53:27 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-17 18:53:27 +0200 |
commit | df1643a6a7886b9363c2a98438e61cbe1c803d41 (patch) | |
tree | 18afbaa1531bf5d41131001fef57e1fa0dfa6659 /src/if_lua.c | |
parent | 9309eb2f28e6ee346c2a5deaa6f9c2b36578522e (diff) | |
download | vim-git-df1643a6a7886b9363c2a98438e61cbe1c803d41.tar.gz |
patch 8.2.0782: cannot build with Lua on MS-Windowsv8.2.0782
Problem: Cannot build with Lua on MS-Windows.
Solution: Add DLL symbol for luaL_Loadstring. (Ken Takata)
Diffstat (limited to 'src/if_lua.c')
-rw-r--r-- | src/if_lua.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/if_lua.c b/src/if_lua.c index 060cb38cd..9a3081bb4 100644 --- a/src/if_lua.c +++ b/src/if_lua.c @@ -119,6 +119,7 @@ static luaV_Funcref *luaV_pushfuncref(lua_State *L, char_u *name); #define luaL_buffinit dll_luaL_buffinit #define luaL_addlstring dll_luaL_addlstring #define luaL_pushresult dll_luaL_pushresult +#define luaL_loadstring dll_luaL_loadstring // lua #if LUA_VERSION_NUM <= 501 #define lua_tonumber dll_lua_tonumber @@ -213,6 +214,7 @@ lua_State *(*dll_luaL_newstate) (void); void (*dll_luaL_buffinit) (lua_State *L, luaL_Buffer *B); void (*dll_luaL_addlstring) (luaL_Buffer *B, const char *s, size_t l); void (*dll_luaL_pushresult) (luaL_Buffer *B); +int (*dll_luaL_loadstring) (lua_State *L, const char *s); // lua #if LUA_VERSION_NUM <= 501 lua_Number (*dll_lua_tonumber) (lua_State *L, int idx); @@ -325,6 +327,7 @@ static const luaV_Reg luaV_dll[] = { {"luaL_buffinit", (luaV_function) &dll_luaL_buffinit}, {"luaL_addlstring", (luaV_function) &dll_luaL_addlstring}, {"luaL_pushresult", (luaV_function) &dll_luaL_pushresult}, + {"luaL_loadstring", (luaV_function) &dll_luaL_loadstring}, // lua #if LUA_VERSION_NUM <= 501 {"lua_tonumber", (luaV_function) &dll_lua_tonumber}, |