todo: use macros for class function database

This commit is contained in:
Quaternions 2024-10-05 21:31:53 -07:00
parent 69d43d8bea
commit 35d60cde16

View File

@ -338,6 +338,7 @@ macro_rules! cf{
};
}
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.
/// 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!{