Skip to content

Latest commit

 

History

History
127 lines (51 loc) · 2.07 KB

hm._globals.md

File metadata and controls

127 lines (51 loc) · 2.07 KB

Module hm._globals

Additions to the global namespace

Overview


Global functions

Global function assertf(v,fmt,...)

  • v: <?>
  • fmt: <#string>
  • ...: <?>

Global function checkargs(...)

  • ...: <?>

Global function errorf(fmt,...)

  • fmt: <#string>
  • ...: <?>

Global function hmassert(v,msg)

Internal/advanced use only

assert.

  • v: <?>
  • msg: <#string>

Modules should use this (instead of assert), as it can be disabled via hm.debug

Global function hmassertf(v,fmt,...)

Internal/advanced use only

assertf.

  • v: <?>
  • fmt: <#string>
  • ...: <?>

Modules should use this (instead of assertf), as it can be disabled via hm.debug

Global function inspect(t,inline,depth)

  • t: <#table>
  • inline: <#boolean>
  • depth: <#number> -@dev

Global function printf(fmt,...)

  • fmt: <#string>
  • ...: <?>

Global fields

Global field checkers: { [<#string>] =<#function>, ...}

Assign functions to this dict for custom type checkers.


Module hm._globals