Module init
Metamethods %section metamethods
Functions
__call ([enable]) | Set the overall debug state. |
__index (name) | Lazy loading of std._debug modules. |
Functions
- __call ([enable])
-
Set the overall debug state.
Parameters:
- enable bool or disable all debugging substates (optional)
Returns:
-
table
states
Usage:
-- Enable all debugging substates local _debug = require 'std._debug'(true)
- __index (name)
-
Lazy loading of std._debug modules.
Don't load everything on initial startup, wait until first attempt
to access a submodule, and then load it on demand.
Parameters:
- name string submodule name
Returns:
-
table or nil
the submodule that was loaded to satisfy the missing
`name`, otherwise `nil` if nothing was found
Usage:
local version = require 'std._debug'.version