diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-05-15 16:28:34 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-05-15 16:28:34 -0300 |
commit | a73da6112d4c6f20abf634cb68f89fe31fb9037c (patch) | |
tree | bc6406a5c8641a080ce58827c921447938913b3a /lbitlib.c | |
parent | 6a5d87771fa28c8337c5e10f4a0c4364dbeb37e9 (diff) | |
download | lua-a73da6112d4c6f20abf634cb68f89fe31fb9037c.tar.gz lua-a73da6112d4c6f20abf634cb68f89fe31fb9037c.tar.bz2 lua-a73da6112d4c6f20abf634cb68f89fe31fb9037c.zip |
deprecated library throws an error if called (instead of silently
not loading itself)
Diffstat (limited to 'lbitlib.c')
-rw-r--r-- | lbitlib.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbitlib.c,v 1.24 2014/03/18 18:27:08 roberto Exp roberto $ | 2 | ** $Id: lbitlib.c,v 1.25 2014/03/20 19:22:16 roberto Exp roberto $ |
3 | ** Standard library for bitwise operations | 3 | ** Standard library for bitwise operations |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -221,8 +221,7 @@ LUAMOD_API int luaopen_bit32 (lua_State *L) { | |||
221 | 221 | ||
222 | 222 | ||
223 | LUAMOD_API int luaopen_bit32 (lua_State *L) { | 223 | LUAMOD_API int luaopen_bit32 (lua_State *L) { |
224 | lua_pushnil(L); | 224 | return luaL_error(L, "library 'bit32' has been deprecated"); |
225 | return 1; | ||
226 | } | 225 | } |
227 | 226 | ||
228 | #endif /* } */ | 227 | #endif /* } */ |