mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
"light C function" is a better name than "C-function pointer"
This commit is contained in:
parent
575befc394
commit
53f9499f7f
6 changed files with 19 additions and 19 deletions
4
ldo.c
4
ldo.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: ldo.c,v 2.84 2010/04/13 20:48:12 roberto Exp roberto $
|
||||
** $Id: ldo.c,v 2.85 2010/04/18 12:41:35 roberto Exp roberto $
|
||||
** Stack and Call structure of Lua
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -300,7 +300,7 @@ int luaD_precall (lua_State *L, StkId func, int nresults) {
|
|||
func = tryfuncTM(L, func); /* check the `function' tag method */
|
||||
funcr = savestack(L, func);
|
||||
L->ci->nresults = nresults;
|
||||
if (ttiscfp(func)) { /* C function pointer? */
|
||||
if (ttislcf(func)) { /* light C function? */
|
||||
f = fvalue(func); /* get it */
|
||||
goto isCfunc; /* go to call it */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue