(bind-func godot_call
(lambda (classname:i8* methodname:i8* instance:godot_object* arg1:godot_variant* arg2:godot_variant* arg3:godot_variant*)
(let ((method:godot_method_bind* (godot_method_bind_get_method classname methodname))
(args:godot_variant** (salloc 3))
(error:godot_variant_call_error* (salloc)))
(pfill! args arg1 arg2 arg3)
(let ((res (godot_method_bind_call method instance args 3 error)))
(println "call return type:" (godot_variant_get_type (ref res)) "errors:" error)
res))))