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.5.0 Last updated 2024-12-21 08:10:17