diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-07-28 12:51:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-07-28 12:51:59 -0300 |
commit | d447945685986f0b1a7bd5d7ed7746bf4ebd5914 (patch) | |
tree | f6439228bedf7b967cb7ff8dc26946732e96d8b5 /ltests.c | |
parent | 78f9635111ec647719bb1b1622b1cb6f47ef1be1 (diff) | |
download | lua-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |