todo: use macros for class function database
This commit is contained in:
parent
69d43d8bea
commit
35d60cde16
@ -338,6 +338,7 @@ macro_rules! cf{
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
type FPointer=fn(&mlua::Lua,mlua::MultiValue)->mlua::Result<mlua::MultiValue>;
|
type FPointer=fn(&mlua::Lua,mlua::MultiValue)->mlua::Result<mlua::MultiValue>;
|
||||||
|
// TODO: use macros to define these with better organization
|
||||||
/// A double hash map of function pointers.
|
/// A double hash map of function pointers.
|
||||||
/// The class tree is walked by the Instance.__index metamethod to find available class methods.
|
/// The class tree is walked by the Instance.__index metamethod to find available class methods.
|
||||||
static CLASS_FUNCTION_DATABASE:phf::Map<&str,phf::Map<&str,FPointer>>=phf::phf_map!{
|
static CLASS_FUNCTION_DATABASE:phf::Map<&str,phf::Map<&str,FPointer>>=phf::phf_map!{
|
||||||
|
Loading…
Reference in New Issue
Block a user