Add parameter to debugger init.

This commit is contained in:
Stephen Chung
2022-08-20 15:04:17 +08:00
parent a51f6138f6
commit 8c20801574
5 changed files with 10 additions and 5 deletions

View File

@@ -348,7 +348,7 @@ impl Engine {
#[inline(always)]
pub fn register_debugger(
&mut self,
init: impl Fn() -> Dynamic + SendSync + 'static,
init: impl Fn(&Engine) -> Dynamic + SendSync + 'static,
callback: impl Fn(
EvalContext,
crate::eval::DebuggerEvent,