loader

Attribute Macro loader 

Source
#[loader]
Expand description

Specify that the function is a module loader.

See https://www.lua.org/manual/5.4/manual.html#6.3 for more information.

ยงExamples

use locenv::api::LuaState;
use locenv_macros::loader;
use std::os::raw::c_int;

#[loader]
extern "C" fn loader(lua: *mut LuaState) -> c_int {
    0
}