From 35d60cde16aa03b704579367793834449b856976 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 5 Oct 2024 21:31:53 -0700 Subject: [PATCH] todo: use macros for class function database --- src/runner/instance.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runner/instance.rs b/src/runner/instance.rs index 0668e38..2e748ca 100644 --- a/src/runner/instance.rs +++ b/src/runner/instance.rs @@ -338,6 +338,7 @@ macro_rules! cf{ }; } type FPointer=fn(&mlua::Lua,mlua::MultiValue)->mlua::Result; +// 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!{