diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-12-07 13:42:32 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-12-07 13:42:32 -0200 |
| commit | 6cd461633d0da9003e03a0e198f4055e37a137a9 (patch) | |
| tree | 7e655f9185962f6dff7cc674f326b939fbecbeb6 | |
| parent | 16fd4abaf618fb37ade221cbc64399c519685854 (diff) | |
| download | lua-6cd461633d0da9003e03a0e198f4055e37a137a9.tar.gz lua-6cd461633d0da9003e03a0e198f4055e37a137a9.tar.bz2 lua-6cd461633d0da9003e03a0e198f4055e37a137a9.zip | |
clearer error message for uninstalled loadlib
| -rw-r--r-- | loadlib.c | 9 |
1 files changed, 3 insertions, 6 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: loadlib.c,v 1.47 2005/10/06 20:46:10 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.48 2005/10/17 18:01:51 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 | ** |
| @@ -236,11 +236,8 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { | |||
| 236 | #define LIB_FAIL "absent" | 236 | #define LIB_FAIL "absent" |
| 237 | 237 | ||
| 238 | 238 | ||
| 239 | #if defined(__ELF__) || defined(__sun) || defined(sgi) || defined(__hpux) | 239 | #define DLMSG "dynamic libraries not enabled; check your Lua installation" |
| 240 | #define DLMSG LUA_QL("loadlib") " not enabled; check your Lua installation" | 240 | |
| 241 | #else | ||
| 242 | #define DLMSG LUA_QL("loadlib") " not supported" | ||
| 243 | #endif | ||
| 244 | 241 | ||
| 245 | static void ll_unloadlib (void *lib) { | 242 | static void ll_unloadlib (void *lib) { |
| 246 | (void)lib; /* to avoid warnings */ | 243 | (void)lib; /* to avoid warnings */ |
