Roberto Ierusalimschy
8b0b675149
added casts (warnings in VS)
7 years ago
Roberto Ierusalimschy
ca6fe7449a
userdata can have multiple user values
7 years ago
Roberto Ierusalimschy
422318f677
two new fields 'fTransfer'/'nTransfer' in 'lua_Debug' structure
(for information about values being given and returned in function calls)
7 years ago
Roberto Ierusalimschy
c5112f7b15
details (comments)
9 years ago
Roberto Ierusalimschy
d103312661
details (typos in comments)
9 years ago
Roberto Ierusalimschy
97f2aa5a44
bug: when manipulating other threads, there is no garanties about
their stack space
10 years ago
Roberto Ierusalimschy
3a29087cb7
'lua_setlocal' should not pop value when failing (to be consistent
with the manual and with 'lua_setupvalue')
10 years ago
Roberto Ierusalimschy
6909b5a2b4
In 'debug.gethook', does not query hook table (which may not exist) if
there is no hook set
10 years ago
Roberto Ierusalimschy
fee3aa518d
using address key (light userdata) for hook table, instead of
string
10 years ago
Roberto Ierusalimschy
28fdbcf393
added include for 'lprefix.h', for stuff that must be added before
any other header file
10 years ago
Roberto Ierusalimschy
05afee0f50
definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror'
moved to 'lauxlib.h' (they do not need to be stable or configurable) +
prefixes changed from 'luai_' to 'lua_' (they are not part of the core)
10 years ago
Roberto Ierusalimschy
ea3155e380
'debug.sizeof' removed
10 years ago
Roberto Ierusalimschy
798660c9cd
deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.)
10 years ago
Roberto Ierusalimschy
e401513086
new option 'p' for 'debug.sizeof' (size of a pointer)
10 years ago
Roberto Ierusalimschy
01549fb1ed
'Csize' -> 'sizeof' + removed its 'b' option
10 years ago
Roberto Ierusalimschy
6a5d87771f
added lots of new comments + small changes in code
11 years ago
Roberto Ierusalimschy
6b630c0fa0
debug.numbits replaced by debug.Csize
11 years ago
Roberto Ierusalimschy
a3addae036
lua_gettable and similars return type of gotten value
11 years ago
Roberto Ierusalimschy
c86b9da022
userdata can have any Lua value as uservalue
11 years ago
Roberto Ierusalimschy
4244da96bf
'debug.subtype' -> 'math.type' (to distinguish integers and floats)
11 years ago
Roberto Ierusalimschy
fcf99bf788
'math.isfloat' replaced by 'debug.subtype'
11 years ago
Roberto Ierusalimschy
15fdbd26fe
'numbits' moved from 'math' to 'debug' library
12 years ago
Roberto Ierusalimschy
7dcc02b165
BUG: coroutine hooks were not collected together with coroutine
13 years ago
Roberto Ierusalimschy
af00a0772c
new functions lua_rawsetp/lua_rawgetp
13 years ago
Roberto Ierusalimschy
19fbdf6cae
'luaL_findtable' -> 'luaL_getsubtable'
14 years ago
Roberto Ierusalimschy
c4ea0c3b29
detail (cleaning trailing spaces)
14 years ago
Roberto Ierusalimschy
c2e3cc4c89
using 'luaL_findtable' to manage hook table
14 years ago
Roberto Ierusalimschy
8d579c5bc5
'debug.setmetatable' returns object (like 'setmetatable')
14 years ago
Roberto Ierusalimschy
566758de79
'getuservalue' accepts any type of argument
14 years ago
Roberto Ierusalimschy
1b54197491
better error message when light userdata is used instead of a
full userdata
14 years ago
Roberto Ierusalimschy
8b7cf8c62d
'lua_[gs]etenv' -> 'lua_[gs]etuservalue'
14 years ago
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.
15 years ago
Roberto Ierusalimschy
ca3865cf1b
'getlocal' gets information about parameters of Lua functions
15 years ago
Roberto Ierusalimschy
064e406f67
no more fenvs!
15 years ago
Roberto Ierusalimschy
4274738e81
new macro 'luai_writestringerror'
15 years ago
Roberto Ierusalimschy
5bcfe0c700
new debug info 'isvararg' and 'nparams'
15 years ago
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
15 years ago
Roberto Ierusalimschy
a6f465f558
new mark LUAMOD_API for all luaopen_* functions
15 years ago
Roberto Ierusalimschy
ac899a6307
'debug.joinupvalue' -> 'debug.upvaluejoin'
15 years ago
Roberto Ierusalimschy
7fe405739c
renaming: 'lua_upvaladdr' -> 'lua_upvalueid',
'lua_upvaljoin' -> 'lua_upvaluejoin'
15 years ago
Roberto Ierusalimschy
b7d5f18d71
api functions to manipulate upvalues do not need to check their
arguments (the caller must check them before calling)
15 years ago
Roberto Ierusalimschy
5598b2bc55
new functions to identify and join upvalues
15 years ago
Roberto Ierusalimschy
a68494fb32
'debug.[gs]etupvalue' should be able to access C upvalues too
15 years ago
Roberto Ierusalimschy
ee5d03b42a
small bug: debug.getfenv should check whether it has an argument
15 years ago
Roberto Ierusalimschy
82749b765e
'db_errorfb' changed to 'db_traceback' for consistency
16 years ago
Roberto Ierusalimschy
74897bc52f
bug: debug.sethook/gethook may overflow thread's stack
17 years ago
Roberto Ierusalimschy
7a3c8314ac
small bug (see http://lua-users.org/lists/lua-l/2007-08/msg00350.html )
17 years ago
Roberto Ierusalimschy
3f78748ef3
traceback function moved to auxlib
18 years ago
Roberto Ierusalimschy
4eb49163c6
error handler in 'lua.c' tries '__tostring' metamethod if error
message is not a string
18 years ago
Roberto Ierusalimschy
a7c9e45c64
avoid trailing white spaces
18 years ago