Naev

Module lazyload

Laziest lib there is.

Functions

lazyload (libname[, rw=false]) Main function that wraps a library to lazy load it.


Functions

lazyload (libname[, rw=false])
Main function that wraps a library to lazy load it.

Parameters:

  • libname string Name of library to lazy load (gets passed to require)
  • rw boolean Whether or not the library should be writable. (default false)

Returns:

    table A library that can be used in place of the real library with lazy loading.

Usage:

    return require("lazyload")( "mylib", false )
    
generated by LDoc 1.4.6 Last updated 2022-07-03 21:38:21