Lua version information in the form "Lua MAJOR.MINOR".
Modulelua-2.3.4Haskell2010
Lua.Constants
Lua constants
Contents
Synopsis
- pattern LUA_VERSION
- pattern LUA_RELEASE
- pattern LUA_COPYRIGHT
- pattern LUA_MULTRET
- pattern LUA_REGISTRYINDEX
- pattern LUA_TNONE
- pattern LUA_TNIL
- pattern LUA_TBOOLEAN
- pattern LUA_TLIGHTUSERDATA
- pattern LUA_TNUMBER
- pattern LUA_TSTRING
- pattern LUA_TTABLE
- pattern LUA_TFUNCTION
- pattern LUA_TUSERDATA
- pattern LUA_TTHREAD
- pattern LUA_OK
- pattern LUA_YIELD
- pattern LUA_ERRRUN
- pattern LUA_ERRSYNTAX
- pattern LUA_ERRMEM
- pattern LUA_ERRERR
- pattern LUA_ERRFILE
- pattern LUA_OPEQ
- pattern LUA_OPLT
- pattern LUA_OPLE
- pattern LUA_OPADD
- pattern LUA_OPSUB
- pattern LUA_OPMUL
- pattern LUA_OPDIV
- pattern LUA_OPIDIV
- pattern LUA_OPMOD
- pattern LUA_OPPOW
- pattern LUA_OPUNM
- pattern LUA_OPBNOT
- pattern LUA_OPBAND
- pattern LUA_OPBOR
- pattern LUA_OPBXOR
- pattern LUA_OPSHL
- pattern LUA_OPSHR
- pattern LUA_GCSTOP
- pattern LUA_GCRESTART
- pattern LUA_GCCOLLECT
- pattern LUA_GCCOUNT
- pattern LUA_GCCOUNTB
- pattern LUA_GCSTEP
- pattern LUA_GCSETPAUSE
- pattern LUA_GCSETSTEPMUL
- pattern LUA_GCISRUNNING
- pattern LUA_GCGEN
- pattern LUA_GCINC
- pattern LUA_REFNIL
- pattern LUA_NOREF
- pattern LUA_RIDX_GLOBALS
- pattern TRUE
- pattern FALSE
- Packagelua-2.3.4
- Exports55
- LanguageHaskell2010
- LicenceMIT
- SourceConstants.hsc
Version and copyright information
Lua version information in the form "Lua MAJOR.MINOR.RELEASE".
Lua copyright information; includes the Lua release
Special values
Option for multiple returns in .Lua.lua_pcall
Pseudo-indices
Stack index of the Lua registry.
Basic types
Non-valid stack index
Type of Lua's nil value
Type of Lua booleans
Type of light userdata
Type of Lua numbers. See Lua.Number
Type of Lua string values
Type of Lua tables
Type of functions, either normal or CFunction
Type of full user data
Type of Lua threads
Status codes
Success.
Yielding / suspended coroutine.
A runtime error.
A syntax error.
Memory allocation error. For such errors, Lua does not call the message handler.
Error while running the message handler.
File related error (e.g., the file cannot be opened or read).
Relational operator codes
Compares for equality (==)
Compares for less than (<)
Compares for less or equal (<=)
Codes for arithmetic operations
Performs addition (+).
Performs subtraction (-)
Performs multiplication (*)
Performs float division (/)
Performs floor division (//)
Performs modulo (%)
Performs exponentiation (^)
Performs mathematical negation (unary -)
Performs bitwise NOT (~)
Performs bitwise AND (&)
Performs bitwise OR (|)
Performs bitwise exclusive OR (~)
Performs left shift (<<)
Performs right shift (>>)
Garbage-collection options
Stops the garbage collector.
Restarts the garbage collector.
Performs a full garbage-collection cycle.
Returns the current amount of memory (in Kbytes) in use by Lua.
Returns the remainder of dividing the current amount of bytes of memory in use by Lua by 1024.
Performs an incremental step of garbage collection.
Sets data as the new value for the pause of the collector (see §2.5) and returns the previous value of the pause.
Sets data as the new value for the step multiplier of the collector (see §2.5) and returns the previous value of the step multiplier.
Returns a boolean that tells whether the collector is running (i.e., not stopped).
Changes the collector to generational mode.
Changes the collector to incremental mode.
Predefined references
Value signaling that no reference was created.
Value signaling that no reference was found.
Predefined values in the registry
The registry index that holds the global environment.
Boolean
Value which Lua usually uses as True.
Value which Lua usually uses as False.