aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
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.c
parent78f9635111ec647719bb1b1622b1cb6f47ef1be1 (diff)
downloadlua-d447945685986f0b1a7bd5d7ed7746bf4ebd5914.tar.gz
lua-d447945685986f0b1a7bd5d7ed7746bf4ebd5914.tar.bz2
lua-d447945685986f0b1a7bd5d7ed7746bf4ebd5914.zip
'module'/'luaL_register' and associates are deprecated
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index ec70a954..5c429746 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.110 2010/06/25 12:18:10 roberto Exp roberto $ 2** $Id: ltests.c,v 2.111 2010/07/02 11:38:13 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1463,8 +1463,8 @@ int luaB_opentests (lua_State *L) {
1463 lua_assert(lua_getallocf(L, &ud) == debug_realloc); 1463 lua_assert(lua_getallocf(L, &ud) == debug_realloc);
1464 lua_assert(ud == cast(void *, &l_memcontrol)); 1464 lua_assert(ud == cast(void *, &l_memcontrol));
1465 lua_setallocf(L, lua_getallocf(L, NULL), ud); 1465 lua_setallocf(L, lua_getallocf(L, NULL), ud);
1466 luaL_register(L, "T", tests_funcs); 1466 luaL_newlib(L, tests_funcs);
1467 return 0; 1467 return 1;
1468} 1468}
1469 1469
1470#endif 1470#endif