Core module

The Core module loads some helper functions and globals useful in all stages of a mods life cycle.

All modules have an __index method into core.

Usage

local Core = require('__stdlib__/stdlib/core')

Functions

create_stdlib_globals([files]) load the stdlib into globals, by default it loads everything into an ALLCAPS name.

Functions

# create_stdlib_globals([files])

load the stdlib into globals, by default it loads everything into an ALLCAPS name.

Alternatively you can pass a dictionary of [global names] -> [require path].

Parameters:
  • files : (table) (optional)
Returns:
  • (Core)
Usage:
require('__stdlib__/stdlib/core).create_stdlib_globals()