Lines Matching refs:sym
95 ** Try to find a function named 'sym' in library 'lib'.
99 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym);
140 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) {
141 lua_CFunction f = cast_func(dlsym(lib, sym));
215 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) {
216 lua_CFunction f = (lua_CFunction)(voidf)GetProcAddress((HMODULE)lib, sym);
250 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) {
251 (void)(lib); (void)(sym); /* not used */
378 ** Look for a C function named 'sym' in a dynamically loaded library
382 ** Then, if 'sym' is '*', return true (as library has been loaded).
383 ** Otherwise, look for symbol 'sym' in the library and push a
388 static int lookforfunc (lua_State *L, const char *path, const char *sym) {
391 reg = lsys_load(L, path, *sym == '*'); /* global symbols if 'sym'=='*' */
395 if (*sym == '*') { /* loading only library (no function)? */
400 lua_CFunction f = lsys_sym(L, reg, sym);