register_method   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm

Implementation

;   void (*godot_nativescript_register_method)(void *p_gdnative_handle, const char *p_name, const char *p_function_name, godot_method_attributes p_attr, godot_instance_method p_method);
;; see register_class above for api references for args d and e
(bind-func register_method
  (lambda (a:i8* b:i8* c:i8* d:godot_method_attributes* e:godot_instance_method*)
    (let ((fptr (cast (tref nativescript_api 5) [void,i8*,i8*,i8*,godot_method_attributes*,godot_instance_method*]*)))
      ;; (println "XTL get_register_method" d e "fptr" (cast fptr i8*))
      (fptrcall fptr a b c d e)
      (println "Method registered!")
      void)))


Back to Index

Similar Entries