Changes

Jump to navigation Jump to search

Overview of the API

67 bytes added, 11:40, 29 June 2013
Line 3: Line 3:  
== Standard Library  ==
 
== Standard Library  ==
   −
( This has been taken from [http://www.wowwiki.com/Lua_functions a WoWWiki page] - See the full, official documentation [http://www.lua.org/manual/5.1/manual.html here] )  
+
( This has been taken from [http://www.wowwiki.com/Lua_functions a WoWWiki page] - See the full, official documentation [http://www.lua.org/manual/5.1/manual.html here] )
 +
 
 +
Basic Library Functions
    
*'''[[G]]''' - Global Variable - A global variable (not a function) that holds the global environment (that is, _G._G = _G). Lua itself does not use this variable; changing its value does not affect any environment, nor vice-versa. (Use setfenv to change environments.) - taken from Lua docs  
 
*'''[[G]]''' - Global Variable - A global variable (not a function) that holds the global environment (that is, _G._G = _G). Lua itself does not use this variable; changing its value does not affect any environment, nor vice-versa. (Use setfenv to change environments.) - taken from Lua docs  
 
*'''[[assert]]'''(value[, errormsg]) - asserts a value evaluates to true. If it is, returns value, otherwise causes a Lua error to be thrown.  
 
*'''[[assert]]'''(value[, errormsg]) - asserts a value evaluates to true. If it is, returns value, otherwise causes a Lua error to be thrown.  
 +
*'''[[collectgarbage]]'''
 +
*'''[[error]]'''
 
*'''[[getfenv]]'''(function or integer) - Returns the table representing the stack frame of the given function or stack level.  
 
*'''[[getfenv]]'''(function or integer) - Returns the table representing the stack frame of the given function or stack level.  
 
*'''[[getmetatable]]'''(obj, mtable) - Returns the metatable of the given table or userdata object.  
 
*'''[[getmetatable]]'''(obj, mtable) - Returns the metatable of the given table or userdata object.  
7

edits

Navigation menu