diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-10-29 12:35:09 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-10-29 12:35:09 -0200 |
commit | ba8dca00ac1e88d7f083dfccf0badd0b6345e700 (patch) | |
tree | 77bc6cc37d4f726338bae81dc16002a1c78d7335 /loadlib.c | |
parent | 9be89a1864a4a8c6505e3f1c3457831893b66d27 (diff) | |
download | lua-ba8dca00ac1e88d7f083dfccf0badd0b6345e700.tar.gz lua-ba8dca00ac1e88d7f083dfccf0badd0b6345e700.tar.bz2 lua-ba8dca00ac1e88d7f083dfccf0badd0b6345e700.zip |
detail (ununsed parameter)
Diffstat (limited to 'loadlib.c')
-rw-r--r-- | loadlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: loadlib.c,v 1.90 2010/08/02 17:14:48 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.91 2010/09/07 19:21:39 roberto Exp roberto $ |
3 | ** Dynamic library loader for Lua | 3 | ** Dynamic library loader for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | ** | 5 | ** |
@@ -177,7 +177,7 @@ static void ll_unloadlib (void *lib) { | |||
177 | 177 | ||
178 | static void *ll_load (lua_State *L, const char *path, int seeglb) { | 178 | static void *ll_load (lua_State *L, const char *path, int seeglb) { |
179 | HMODULE lib = LoadLibraryExA(path, NULL, LUA_LLE_FLAGS); | 179 | HMODULE lib = LoadLibraryExA(path, NULL, LUA_LLE_FLAGS); |
180 | (void)(seeglb); /* symbols are 'global' by default? */ | 180 | (void)(seeglb); /* symbols are 'global' by default */ |
181 | if (lib == NULL) pusherror(L); | 181 | if (lib == NULL) pusherror(L); |
182 | return lib; | 182 | return lib; |
183 | } | 183 | } |
@@ -212,7 +212,7 @@ static void ll_unloadlib (void *lib) { | |||
212 | 212 | ||
213 | 213 | ||
214 | static void *ll_load (lua_State *L, const char *path, int seeglb) { | 214 | static void *ll_load (lua_State *L, const char *path, int seeglb) { |
215 | (void)(path); /* to avoid warnings */ | 215 | (void)(path); (void)(seeglb); /* to avoid warnings */ |
216 | lua_pushliteral(L, DLMSG); | 216 | lua_pushliteral(L, DLMSG); |
217 | return NULL; | 217 | return NULL; |
218 | } | 218 | } |