summaryrefslogtreecommitdiff
path: root/lauxlib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* no more extra space in 'luaL_checkstack'. (It was already uselessRoberto Ierusalimschy2016-01-081-11/+10
| | | | | for the first call, and function works ok without that space anyway (just error message misses the 'msg' component)
* comments + small code changes around stack usage when 'luaL_checkstack'Roberto Ierusalimschy2015-12-141-5/+21
| | | | raises an error (and needs the stack to create the error message...)
* details (typos in comments)Roberto Ierusalimschy2015-11-191-3/+3
|
* allow NULL string when length is zero in 'lua_pushlstring' andRoberto Ierusalimschy2015-10-061-4/+6
| | | | 'luaL_addlstring'
* in 'luaL_traceback', print correct number of levels even whenRoberto Ierusalimschy2015-10-021-9/+11
| | | | initial level is not 1.
* better implementation for buffers (reallocated memory directlyRoberto Ierusalimschy2015-06-181-8/+52
| | | | with allocation function; generates much less garbage)
* detail ('luaL_getmetatable' does not return a boolean, but a tag)Roberto Ierusalimschy2015-02-031-2/+2
|
* traverse loaded modules (instead of globals) for a name for a function +Roberto Ierusalimschy2014-12-141-5/+13
| | | | removes prefix '_G.' from names (if present)
* in traceback names, give preference to 'name' over '_G.name'Roberto Ierusalimschy2014-12-131-3/+4
|
* give preference to global names in tracebacksRoberto Ierusalimschy2014-12-101-12/+10
|
* use 'namewhat' when building a tracebackRoberto Ierusalimschy2014-12-081-2/+2
|
* detail (buffer in 'LoadF' is related to files)Roberto Ierusalimschy2014-11-211-2/+2
|
* uses return value from luaL_getmetatableRoberto Ierusalimschy2014-11-121-3/+2
|
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-4/+6
| | | | any other header file
* definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror'Roberto Ierusalimschy2014-10-291-3/+3
| | | | | 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)
* `name' in comments changed to 'name'Roberto Ierusalimschy2014-10-251-5/+5
|
* added 'l_' prefix for names that can be redefined externallyRoberto Ierusalimschy2014-10-221-5/+5
|
* macros 'LUA_QL'/'LUA_QL' deprecatedRoberto Ierusalimschy2014-10-171-7/+7
|
* 'luaL_getmetafield' returns type of metafield (instead of a boolean)Roberto Ierusalimschy2014-09-221-16/+17
|
* in 'luaL_checkversion_' check numeric types first. (Other testsRoberto Ierusalimschy2014-07-191-4/+3
| | | | depend on correct numeric type.)
* new conversion float->integer: conversion is valid only whenRoberto Ierusalimschy2014-07-171-3/+3
| | | | float has an exact representation as an integer
* 'requiref' checks 'package.loaded' before loading a moduleRoberto Ierusalimschy2014-07-161-11/+15
|
* unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.)Roberto Ierusalimschy2014-06-261-16/+1
| | | | deprecated
* addition of '.0' to float representation done by the kernelRoberto Ierusalimschy2014-05-121-8/+3
|
* keep 'luaL_checkversion_' with its signature in version 5.2, forRoberto Ierusalimschy2014-04-151-3/+3
| | | | correct error messages in case of version mixings
* detail (error message for conversion from float to integer)Roberto Ierusalimschy2014-04-011-2/+2
|
* lua_gettable and similars return type of gotten valueRoberto Ierusalimschy2014-03-121-11/+7
|
* detail (better error messages for light userdata)Roberto Ierusalimschy2014-02-191-1/+3
|
* new field '__name' in metatables to help better error messagesRoberto Ierusalimschy2014-02-111-3/+11
|
* insertion of ".0" in floats with integer values done by "luaL_tolstring",Roberto Ierusalimschy2014-02-051-5/+11
| | | | not by the core
* 'arg' arguments (previously called 'narg', 'nArg', 'numArg', etc.)Roberto Ierusalimschy2014-01-051-46/+46
| | | | renamed all to 'arg'
* no need to check "bad conversion number->int;" in luaL_checkversion,Roberto Ierusalimschy2013-06-271-12/+6
| | | | | | as now Lua does not use tricks for the conversion, but there is a need to check the sizes of number types, as they can be different in two modules
* 'luaL_len' returns lua_Integer instead of 'int'Roberto Ierusalimschy2013-06-251-5/+5
|
* detail (removed 'assert')Roberto Ierusalimschy2013-06-141-4/+2
|
* correct error message for floating-point values out of (integer) rangeRoberto Ierusalimschy2013-06-141-4/+15
|
* avoid using a negative value to test 'lua_tounsigned'Roberto Ierusalimschy2013-06-141-4/+5
|
* string contatenation handles conversion of integers to strings +Roberto Ierusalimschy2013-06-041-10/+5
| | | | floats always format as floats (with decimal dot or exponent)
* new format "%I" in 'lua_pushfstring' for lua_IntegerRoberto Ierusalimschy2013-04-251-2/+12
|
* detail (avoid unnecessary "unconst" in cast)Roberto Ierusalimschy2013-03-211-2/+2
|
* error message for 'bad self' includes original 'extramsg'Roberto Ierusalimschy2012-10-191-2/+3
|
* typo in commentRoberto Ierusalimschy2012-09-241-2/+2
|
* details (no need to use lua_pushfstring for plain strings)Roberto Ierusalimschy2012-08-161-3/+3
|
* bug in luaL_getsubtable (calling lua_absindex not with original stack)Roberto Ierusalimschy2012-05-311-3/+3
|
* details (using lua_setglobal/lua_getglobal instead of explicitRoberto Ierusalimschy2012-04-201-5/+3
| | | | use of the global table)
* cleaner code (avoids loop with empty body)Roberto Ierusalimschy2012-03-191-3/+5
|
* 'luaL_checkversion' called by 'luaL_setfuncs'Roberto Ierusalimschy2012-03-181-1/+2
|
* small bug: format '%d' for lua_Number argumentRoberto Ierusalimschy2011-12-061-2/+2
|
* macro 'luaL_getmetatable' seems more appropriate when gettingRoberto Ierusalimschy2011-12-021-3/+3
| | | | metatables in registry
* commentsRoberto Ierusalimschy2011-11-301-5/+4
|
* 'lua_load' has an extra argument 'mode'Roberto Ierusalimschy2011-11-291-28/+9
|