include_library [function]
include_library( string lib[, bool override ] )
loads the global variables of the specific library lib
in the state, returns success, as bool
, emits a warning on failure
- lib must be one of 'fmt', 'io', 'math', 'os', 'string'
- if
override
is specified, library will be reloaded even if it was already loaded before - this function is equivalent to the sgs_LoadLib_* functions in the C API
printvar( sin ); // warning, null include_library( "math" ); printvar( sin ); // C function