A utility table, holding miscellaneous functions and structures.
Lib | A utility table, holding miscellaneous functions and structures. |
Functions | |
OrderedTable | Creates a table that preserves order of key->value pairs as they’re entered. |
do_error | A local function to output uniform error messages. |
CheckInput | Does some input checking for sanity’s sake. |
local function do_error ( kind, depth, obj, pos )
A local function to output uniform error messages.
kind | The types that failed to match. |
depth | The depth of the CheckInput call. |
obj | The object or property that received the bad input. |
pos | If this was an argument to a constructor, this is the argument’s position. |
function Lib.CheckInput ( check, value, kind, depth, obj, pos )
Does some input checking for sanity’s sake.
check | The type of check to be done. |
value | The thing to check. |
kind | What said thing needs to be. |
depth | Where in the stack the error is being called. |
obj | The object or function name receiving the input. |
pos | If this is a multiple argument call, this is the position of the argument. |
Creates a table that preserves order of key->value pairs as they’re entered.
function Lib.OrderedTable ()
A local function to output uniform error messages.
local function do_error ( kind, depth, obj, pos )
Does some input checking for sanity’s sake.
function Lib.CheckInput ( check, value, kind, depth, obj, pos )