diff options
Diffstat (limited to 'table.c')
-rw-r--r-- | table.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** Module to control static tables | 3 | ** Module to control static tables |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_table="$Id: table.c,v 2.66 1997/04/04 15:35:37 roberto Exp roberto $"; | 6 | char *rcs_table="$Id: table.c,v 2.67 1997/04/06 14:08:08 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include "luamem.h" | 8 | #include "luamem.h" |
9 | #include "auxlib.h" | 9 | #include "auxlib.h" |
@@ -111,6 +111,12 @@ TaggedString *luaI_createfixedstring (char *name) | |||
111 | } | 111 | } |
112 | 112 | ||
113 | 113 | ||
114 | int luaI_globaldefined (char *name) | ||
115 | { | ||
116 | return ttype(&lua_table[luaI_findsymbolbyname(name)].object) != LUA_T_NIL; | ||
117 | } | ||
118 | |||
119 | |||
114 | /* | 120 | /* |
115 | ** Traverse symbol table objects | 121 | ** Traverse symbol table objects |
116 | */ | 122 | */ |