aboutsummaryrefslogtreecommitdiff
path: root/table.c
diff options
context:
space:
mode:
Diffstat (limited to 'table.c')
-rw-r--r--table.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/table.c b/table.c
index a1ab1178..1d6afbfc 100644
--- a/table.c
+++ b/table.c
@@ -3,7 +3,7 @@
3** Module to control static tables 3** Module to control static tables
4*/ 4*/
5 5
6char *rcs_table="$Id: table.c,v 2.66 1997/04/04 15:35:37 roberto Exp roberto $"; 6char *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
114int 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*/