mirror of
https://github.com/lua/lua.git
synced 2025-01-28 06:03:00 +08:00
clearer error message for uninstalled loadlib
This commit is contained in:
parent
16fd4abaf6
commit
6cd461633d
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: loadlib.c,v 1.47 2005/10/06 20:46:10 roberto Exp roberto $
|
** $Id: loadlib.c,v 1.48 2005/10/17 18:01:51 roberto Exp roberto $
|
||||||
** Dynamic library loader for Lua
|
** Dynamic library loader for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
**
|
**
|
||||||
@ -236,11 +236,8 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) {
|
|||||||
#define LIB_FAIL "absent"
|
#define LIB_FAIL "absent"
|
||||||
|
|
||||||
|
|
||||||
#if defined(__ELF__) || defined(__sun) || defined(sgi) || defined(__hpux)
|
#define DLMSG "dynamic libraries not enabled; check your Lua installation"
|
||||||
#define DLMSG LUA_QL("loadlib") " not enabled; check your Lua installation"
|
|
||||||
#else
|
|
||||||
#define DLMSG LUA_QL("loadlib") " not supported"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void ll_unloadlib (void *lib) {
|
static void ll_unloadlib (void *lib) {
|
||||||
(void)lib; /* to avoid warnings */
|
(void)lib; /* to avoid warnings */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user