summaryrefslogtreecommitdiff
path: root/ltests.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* LUAI_MAXCCALLS renamed LUAI_MAXCSTACKRoberto Ierusalimschy2019-03-251-2/+2
| | | | | | | The limit LUAI_MAXCCALLS was renamed LUAI_MAXCSTACK, which better represents its meaning. Moreover, its definition was moved to 'luaconf.h', given its importance now that Lua does not use a "stackless" implementation.
* Changes in the control of C-stack overflowRoberto Ierusalimschy2018-12-271-1/+1
| | | | | | | | | | * unification of the 'nny' and 'nCcalls' counters; * external C functions ('lua_CFunction') count more "slots" in the C stack (to allow for their possible use of buffers) * added a new test script specific for C-stack overflows. (Most of those tests were already present, but concentrating them in a single script easies the task of checking whether 'LUAI_MAXCCALLS' is adequate in a system.)
* Added opcodes for arithmetic with K operandsRoberto Ierusalimschy2018-11-231-1/+0
| | | | | | | | Added opcodes for all seven arithmetic operators with K operands (that is, operands that are numbers in the array of constants of the function). They cover the cases of constant float operands (e.g., 'x + .0.0', 'x^0.5') and large integer operands (e.g., 'x % 10000').
* Deprecated the emulation of '__le' using '__lt'Roberto Ierusalimschy2018-08-241-0/+1
| | | | | | | | | | | As hinted in the manual for Lua 5.3, the emulation of the metamethod for '__le' using '__le' has been deprecated. It is slow, complicates the logic, and it is easy to avoid this emulation by defining a proper '__le' function. Moreover, often this emulation was used wrongly, with a programmer assuming that an order is total when it is not (e.g., NaN in floating-point numbers).
* Removed extra information from RCS keyword stringsRoberto Ierusalimschy2018-08-231-1/+1
| | | | | Version numbers and dates (mostly wrong) from RCS keyword strings removed from all source files; only the file name are kept.
* reorganization of '#if's for sellecting a type for 'Rand64' +Roberto Ierusalimschy2018-05-041-1/+5
| | | | comments
* no need to define 'luaP_opnames' in regular buildsRoberto Ierusalimschy2018-04-191-1/+5
|
* use test mode to test the interpreter without jump tablesRoberto Ierusalimschy2018-04-111-1/+5
|
* removed compatibility code with older versionsRoberto Ierusalimschy2018-02-271-11/+1
|
* default now is compiling without compatibility options + smallerRoberto Ierusalimschy2017-12-181-14/+14
| | | | | stack size in debug mode (clang uses still more stack space when debugging).
* new test function 'T.allocount' to restrict number of allocationsRoberto Ierusalimschy2017-12-071-1/+2
| | | | before a memory-allocation error
* no more 'stackless' implementation; 'luaV_execute' calls itselfRoberto Ierusalimschy2017-11-231-1/+5
| | | | | recursively to execute function calls. 'unroll' continues all executions suspended by an yield (through a long jump)
* includes 'stdio.h' to allow prints when testingRoberto Ierusalimschy2017-11-131-1/+2
|
* 'lineinfo' in prototypes saved as differences instead of absoluteRoberto Ierusalimschy2017-06-271-1/+2
| | | | | | values, so that the array can use bytes instead of ints, reducing its size. (A new array 'abslineinfo' is used when line differences do not fit in a byte.)
* redefine MAXINDEXRK (for debugging, to force most values toRoberto Ierusalimschy2016-07-191-2/+5
| | | | go through registers)
* code for string cache generalized for "associative sets" (compilerRoberto Ierusalimschy2015-09-221-1/+5
| | | | will optimize away or inline the extra loops)
* redefine 'l_sprintf' to test correctness of buffer sizes givenRoberto Ierusalimschy2015-06-181-1/+10
| | | | to 'snprintf'
* removed macro 'luai_numinvalidop' (main motivation removed, as foldingRoberto Ierusalimschy2014-12-261-6/+1
| | | | does not handle any division by zero by default)
* detail (in test for 'luai_numinvalidop', use a round float)Roberto Ierusalimschy2014-12-191-2/+2
|
* redefinition of LUAI_MAXSTACK to make stack-overflow tests run fasterRoberto Ierusalimschy2014-12-091-1/+6
|
* no more 'preloadedlibs' when opening libraries (as it is dead code now)Roberto Ierusalimschy2014-12-091-4/+1
|
* in test mode, debug library is not predefined (to allow testingRoberto Ierusalimschy2014-12-061-1/+4
| | | | 'preloadedlibs')
* some functions from test module must be exportedRoberto Ierusalimschy2014-11-291-4/+5
|
* new test for macro 'luai_numinvalidop'Roberto Ierusalimschy2014-11-241-1/+5
|
* deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.)Roberto Ierusalimschy2014-10-011-2/+2
|
* 'ipairs' respects metamethodsRoberto Ierusalimschy2014-07-241-1/+2
|
* better support for extra user space associated with a Lua stateRoberto Ierusalimschy2014-07-241-5/+6
|
* detail (extra byte in LUAI_EXTRASPACE to test proper alignment ofRoberto Ierusalimschy2014-07-231-2/+3
| | | | a lua_State)
* comments + proper undef of compatibility macros + no need to undefRoberto Ierusalimschy2014-07-231-12/+22
| | | | internal macros (this is the first definition)
* ensure size for LUAI_USER_ALIGNMENT_T in tests is larger than theRoberto Ierusalimschy2014-07-181-2/+2
| | | | structures it is aligning (in most architectures)
* new macro 'luai_userstateclose' (to test it is being called correctly)Roberto Ierusalimschy2013-11-081-1/+3
|
* 'module'/'luaL_register' and associates are deprecatedRoberto Ierusalimschy2010-07-281-2/+3
|
* ensure that 'luai_userstatethread' is always called (even ifRoberto Ierusalimschy2010-04-191-1/+3
| | | | 'stack_init' throws a memory error)
* new macro LUA_NUMTAGSRoberto Ierusalimschy2010-04-121-2/+2
|
* missing 'external' in variable declarationRoberto Ierusalimschy2010-01-111-2/+2
|
* several configuration options that do not change often moved out ofRoberto Ierusalimschy2009-12-171-6/+4
| | | | luaconf.h and into more internal files
* allocator function receives the tag of object being allocated in 'osize'Roberto Ierusalimschy2009-12-161-2/+3
| | | | when 'ptr' is NULL.
* cleaner way to add extra space in a lua state.Roberto Ierusalimschy2009-12-141-2/+1
|
* new macros 'LUAI_DDEC'/'LUAI_DDEF' to better control declarations andRoberto Ierusalimschy2009-11-191-3/+3
| | | | definitions of non-static variables
* several small improvements based on 'ci' being fixed now (includingRoberto Ierusalimschy2009-04-171-2/+1
| | | | erasing savedpc from lua_State)
* larger alignment requirement helps to uncover some kinds of bugsRoberto Ierusalimschy2008-08-051-1/+6
|
* LUA_COMPAT -> LUA_COMPAT_API (more specific)Roberto Ierusalimschy2008-07-181-2/+2
|
* do not use compatibility macros in LuaRoberto Ierusalimschy2008-07-111-1/+3
|
* "test trick" seems more useful with pointers instead of integersRoberto Ierusalimschy2008-06-231-2/+2
|
* use prefix in extern names, even those in test filesRoberto Ierusalimschy2007-11-121-4/+4
|
* 27 is not a prime number :(Roberto Ierusalimschy2007-09-301-2/+2
|
* small simplificationsRoberto Ierusalimschy2006-06-051-7/+1
|
* lua_assert is an internal matter, not to be configuredRoberto Ierusalimschy2005-12-271-2/+1
|
* avoid the use of global lockRoberto Ierusalimschy2005-09-141-7/+10
|
* new mark LUAI_DATA for extern dataRoberto Ierusalimschy2005-06-061-4/+4
|