Roberto Ierusalimschy
7192afafee
new module policy: C modules do not create globals and do not register
...
themselves with 'require' (let 'require' do its work); new auxiliary
functions luaL_newlib/luaL_newlibtable/luaL_setfuncs/luaL_requiref.
Old luaL_register will be deprecated.
2010-07-02 08:38:13 -03:00
Roberto Ierusalimschy
ca3865cf1b
'getlocal' gets information about parameters of Lua functions
2010-06-21 13:30:12 -03:00
Roberto Ierusalimschy
064e406f67
no more fenvs!
2010-03-26 17:58:11 -03:00
Roberto Ierusalimschy
4274738e81
new macro 'luai_writestringerror'
2010-02-18 17:18:41 -02:00
Roberto Ierusalimschy
5bcfe0c700
new debug info 'isvararg' and 'nparams'
2010-01-06 12:42:35 -02:00
Roberto Ierusalimschy
b0f2b288a6
new scheme for debug info about tail calls: no more 'fake' stack entries,
...
but stack entry knows whether it was tail called
2009-11-25 13:27:51 -02:00
Roberto Ierusalimschy
a6f465f558
new mark LUAMOD_API for all luaopen_* functions
2009-11-24 10:05:44 -02:00
Roberto Ierusalimschy
ac899a6307
'debug.joinupvalue' -> 'debug.upvaluejoin'
2009-11-18 13:50:18 -02:00
Roberto Ierusalimschy
7fe405739c
renaming: 'lua_upvaladdr' -> 'lua_upvalueid',
...
'lua_upvaljoin' -> 'lua_upvaluejoin'
2009-11-09 17:10:48 -02:00
Roberto Ierusalimschy
b7d5f18d71
api functions to manipulate upvalues do not need to check their
...
arguments (the caller must check them before calling)
2009-11-05 15:26:00 -02:00
Roberto Ierusalimschy
5598b2bc55
new functions to identify and join upvalues
2009-11-05 14:48:31 -02:00
Roberto Ierusalimschy
a68494fb32
'debug.[gs]etupvalue' should be able to access C upvalues too
2009-09-09 17:32:19 -03:00
Roberto Ierusalimschy
ee5d03b42a
small bug: debug.getfenv should check whether it has an argument
2009-08-04 15:27:57 -03:00
Roberto Ierusalimschy
82749b765e
'db_errorfb' changed to 'db_traceback' for consistency
2009-02-17 10:21:28 -03:00
Roberto Ierusalimschy
74897bc52f
bug: debug.sethook/gethook may overflow thread's stack
2008-01-21 11:37:08 -02:00
Roberto Ierusalimschy
7a3c8314ac
small bug (see http://lua-users.org/lists/lua-l/2007-08/msg00350.html )
2008-01-18 15:14:47 -02:00
Roberto Ierusalimschy
3f78748ef3
traceback function moved to auxlib
2007-06-22 12:33:54 -03:00
Roberto Ierusalimschy
4eb49163c6
error handler in 'lua.c' tries '__tostring' metamethod if error
...
message is not a string
2007-04-26 17:39:38 -03:00
Roberto Ierusalimschy
a7c9e45c64
avoid trailing white spaces
2006-09-11 11:07:24 -03:00
Roberto Ierusalimschy
bfdcbbcd76
small optimizations (lua_newtable -> lua_createtable)
2005-12-29 14:23:32 -02:00
Roberto Ierusalimschy
d4c99b2673
new function 'getregistry'
2005-11-01 14:08:32 -02:00
Roberto Ierusalimschy
ed7039024d
avoid some warnings
2005-10-19 11:05:11 -02:00
Roberto Ierusalimschy
3390f9a35a
detail
2005-08-26 14:36:32 -03:00
Roberto Ierusalimschy
5e8a9e324c
luaL_openlib -> luaL_register, luaL_putchar -> luaL_addchar
2005-08-15 11:12:32 -03:00
Roberto Ierusalimschy
80ac5e83fd
details (alphabetical order for list of functions)
2005-07-12 11:32:08 -03:00
Roberto Ierusalimschy
67578ec51f
several small details
2005-05-17 16:49:15 -03:00
Roberto Ierusalimschy
c2bb9abcec
better quotes for strings in error messages
2005-05-16 18:19:00 -03:00
Roberto Ierusalimschy
a2b78aad49
debug information for active lines
2005-05-16 15:45:15 -03:00
Roberto Ierusalimschy
1ab2b93462
debug information for last line of a function definition
2005-05-05 17:47:02 -03:00
Roberto Ierusalimschy
f8df21bd20
`luaconf.h´ exports all its definitions always (so all of them
...
must have a lua/LUA prefix).
2005-03-08 17:10:05 -03:00
Roberto Ierusalimschy
7d45a5f48f
C functions and userdata also have environments
2005-02-18 10:40:02 -02:00
Roberto Ierusalimschy
d89a56f869
small warning in C++
2005-01-18 15:23:25 -02:00
Roberto Ierusalimschy
a27497aa03
debug.traceback' gets an optional
initial level' parameter
2005-01-10 15:21:10 -02:00
Roberto Ierusalimschy
e791f025c0
no more `_TRACEBACK' variable
2005-01-10 14:30:59 -02:00
Roberto Ierusalimschy
497f042fad
detail
2004-11-17 10:02:41 -02:00
Roberto Ierusalimschy
4973682294
small bug with coroutine tracebacks
2004-09-21 14:58:06 -03:00
Roberto Ierusalimschy
ff4f8fe59a
small bug: calls to upvalues were not correctly traced
2004-08-13 15:02:36 -03:00
Roberto Ierusalimschy
1e0aaf2156
luaL_dofile' and
luaL_dostring' are deprecated
2004-05-31 16:27:14 -03:00
Roberto Ierusalimschy
b4cd38ba6c
new scheme for configuration through `luaconf.h'
2004-04-30 17:13:38 -03:00
Roberto Ierusalimschy
fa198197a0
lua_(set)getglobal are ok to use
2003-11-05 09:59:14 -02:00
Roberto Ierusalimschy
533737f26e
new functions lua_getfield' and
lua_setfield'
2003-10-10 09:57:55 -03:00
Roberto Ierusalimschy
f04fe526cd
new functions `lua_tointeger' and lua_pushinteger'
2003-10-07 17:13:41 -03:00
Roberto Ierusalimschy
79fee99024
`debug' library can operate over other threads
2003-07-07 10:37:08 -03:00
Roberto Ierusalimschy
0d88545b82
warnings from several compilers (mainly typecasts when lua_Number is float)
2003-04-03 10:35:34 -03:00
Roberto Ierusalimschy
034de1fe73
new names for functions that open C libraries
2003-03-11 09:24:34 -03:00
Roberto Ierusalimschy
92f6e0c1bf
no-nonsense debug information about tail calls
2003-02-27 08:52:30 -03:00
Roberto Ierusalimschy
32fd039bb5
`openlib' functions return new module
2002-12-20 08:26:33 -02:00
Roberto Ierusalimschy
dd8edecae1
new functions to manipulate upvales (get/setupvalue)
2002-12-19 09:11:55 -02:00
Roberto Ierusalimschy
04f95ce879
hook counts are integers now
2002-12-05 15:50:10 -02:00
Roberto Ierusalimschy
27c6b4d422
each .c file defines its own name
2002-12-04 15:38:31 -02:00