diff options
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 | } |
