summaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua.h b/lua.h
index ead8422b..9cf92660 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.251 2009/11/25 15:27:51 roberto Exp roberto $ 2** $Id: lua.h,v 1.252 2009/11/26 11:39:20 roberto Exp roberto $
3** Lua - A Scripting Language 3** Lua - A Scripting Language
4** Lua.org, PUC-Rio, Brazil (http://www.lua.org) 4** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
5** See Copyright Notice at the end of this file 5** See Copyright Notice at the end of this file
@@ -297,7 +297,8 @@ LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud);
297 297
298#define lua_newtable(L) lua_createtable(L, 0, 0) 298#define lua_newtable(L) lua_createtable(L, 0, 0)
299 299
300#define lua_register(L,n,f) (lua_pushcfunction(L, (f)), lua_setglobal(L, (n))) 300#define lua_register(L,n,f) \
301 (lua_pushcfunction(L, (f)), lua_setfield(L, LUA_GLOBALSINDEX, (n)))
301 302
302#define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) 303#define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0)
303 304