mirror of
https://github.com/lua/lua
synced 2024-12-25 03:46:50 +03:00
lua function "type" now returns the string "function" both for lua
functions and c functions.
This commit is contained in:
parent
ae808860ae
commit
28b3017baf
6
inout.c
6
inout.c
@ -5,7 +5,7 @@
|
|||||||
** Also provides some predefined lua functions.
|
** Also provides some predefined lua functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *rcs_inout="$Id: inout.c,v 2.20 1995/05/16 17:23:58 roberto Exp $";
|
char *rcs_inout="$Id: inout.c,v 2.21 1995/10/04 14:20:26 roberto Exp roberto $";
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -258,10 +258,8 @@ void luaI_type (void)
|
|||||||
lua_pushliteral("table");
|
lua_pushliteral("table");
|
||||||
break;
|
break;
|
||||||
case LUA_T_FUNCTION :
|
case LUA_T_FUNCTION :
|
||||||
lua_pushliteral("function");
|
|
||||||
break;
|
|
||||||
case LUA_T_CFUNCTION :
|
case LUA_T_CFUNCTION :
|
||||||
lua_pushliteral("cfunction");
|
lua_pushliteral("function");
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
lua_pushliteral("userdata");
|
lua_pushliteral("userdata");
|
||||||
|
Loading…
Reference in New Issue
Block a user