[][src]Macro luajit::lua_method

macro_rules! lua_method {
    ($name:expr, $st:ty, $method:path) => { ... };
}

This macro can be used to automatically generate a luaL_Reg struct for the provided method, with name name. It automatically reads an instances of struct $st from userdata and provides it as an argument.