aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-07-28 12:51:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-07-28 12:51:59 -0300
commitd447945685986f0b1a7bd5d7ed7746bf4ebd5914 (patch)
treef6439228bedf7b967cb7ff8dc26946732e96d8b5 /ltests.h
parent78f9635111ec647719bb1b1622b1cb6f47ef1be1 (diff)
downloadlua-d447945685986f0b1a7bd5d7ed7746bf4ebd5914.tar.gz
lua-d447945685986f0b1a7bd5d7ed7746bf4ebd5914.tar.bz2
lua-d447945685986f0b1a7bd5d7ed7746bf4ebd5914.zip
'module'/'luaL_register' and associates are deprecated
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ltests.h b/ltests.h
index 73676f64..1fc1cd37 100644
--- a/ltests.h
+++ b/ltests.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.h,v 2.31 2010/04/12 16:07:29 roberto Exp roberto $ 2** $Id: ltests.h,v 2.32 2010/04/19 17:40:13 roberto Exp roberto $
3** Internal Header for Debugging of the Lua Implementation 3** Internal Header for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -73,7 +73,8 @@ int luaB_opentests (lua_State *L);
73 73
74#if defined(lua_c) 74#if defined(lua_c)
75#define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol) 75#define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol)
76#define luaL_openlibs(L) { (luaL_openlibs)(L); luaB_opentests(L); } 76#define luaL_openlibs(L) \
77 { (luaL_openlibs)(L); luaL_requiref(L, "T", luaB_opentests, 1); }
77#endif 78#endif
78 79
79 80