Additions to the global namespace
-
Global functions
assertf(v,fmt,...)
- global functioncheckargs(...)
- global functionerrorf(fmt,...)
- global functionhmassert(v,msg)
- global functionhmassertf(v,fmt,...)
- global functioninspect(t,inline,depth)
- global functionprintf(fmt,...)
- global function
-
Global fields
checkers
:{ [
<#string>
] =
<#function>
, ...}
- global field
-
Module
hm._globals
v
:<?>
fmt
:<#string>
...
:<?>
...
:<?>
fmt
:<#string>
...
:<?>
Internal/advanced use only
assert
.
v
:<?>
msg
:<#string>
Modules should use this (instead of assert
), as it can be disabled via hm.debug
Internal/advanced use only
assertf
.
v
:<?>
fmt
:<#string>
...
:<?>
Modules should use this (instead of assertf
), as it can be disabled via hm.debug
t
:<#table>
inline
:<#boolean>
depth
:<#number>
-@dev
fmt
:<#string>
...
:<?>
Assign functions to this dict for custom type checkers.