call_object   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm

Implementation

(bind-func call_object
  (lambda (instance:godot_object*) ;// args:godot_array*)
    (printf "call object with name:\n")
    (let ((callv (godot_method_bind_get_method "Object" "callv"))
           (methname (godot_string "get"))
           (propname (godot_string_var "name"))
           (args (godot_array)) ;; find_node is a 3 arg funtion
           ;; (error:godot_variant_call_error* (salloc))
           (res:godot_variant* (salloc))
           (obj (godot_global_get_singleton "Main"))
           (c_args:|2,i8*|* (alloc)))
      ;; (godot_array_append args methname)
      (godot_array_append args (ref propname))
      ;; callv expects (godot_string*, godot_array*)
      (pfill! (cast c_args i8**) (cast methname i8*) (cast args i8*))
      ; (godot_array_arg2 arg3)
      (println "ok to here in call object with name!")
      (godot_method_bind_ptrcall callv obj (cast c_args i8**) (cast res i8*))
      (printf "res type: %d\n" (godot_variant_get_type res))
      (printf "name is: %s\n" (cast res i8*))
      void)))
     ;;  (pref res 0))))


Back to Index

Similar Entries

  • PaStreamCallbackTimeInfo_print    xtlang
  • PaStreamCallbackTimeInfo_toString    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _gst_main_loop_call    xtlang
  • _playbin_bus_call:GstBusFunc    xtlang
  • audio_callback:PaStreamCallback    xtlang
  • audio_callback:PaStreamCallback    xtlang
  • bind-object    macro
  • call-as-xtlang    macro
  • call-as-xtlang-leaky    macro
  • call-cpp    scheme
  • call-with-input-file    scheme
  • call-with-output-file    scheme
  • call/cc    scheme
  • callback    scheme
  • callback-adapter    scheme
  • callback-test2-helper    xtlang
  • callback_goodbye_world    xtlang
  • callback_hello_world    xtlang
  • clock_scheduler_main_callback    xtlang
  • curl_write_callback    xtlang
  • glfw_char_callback:GLFWcharfun    xtlang
  • glfw_cursor_position_callback:GLFWcursorposfun    xtlang
  • glfw_error_callback:GLFWerrorfun    xtlang
  • glfw_key_callback:GLFWkeyfun    xtlang
  • glfw_mouse_button_callback:GLFWmousebuttonfun    xtlang
  • glfw_window_focus_callback:GLFWwindowfocusfun    xtlang
  • glfw_window_position_callback:GLFWwindowposfun    xtlang
  • gobject_alloc    xtlang
  • gobject_halloc    xtlang
  • gobject_zalloc    xtlang
  • godot_call    xtlang
  • godot_call    xtlang
  • godot_call    xtlang
  • godot_call    xtlang
  • godot_method_bind_call    xtlang
  • godot_method_bind_ptrcall    xtlang
  • godot_variant_as_object    xtlang
  • gui_window_size_callback    xtlang
  • h3d_object_pos    xtlang
  • h3d_object_size    xtlang
  • impc:ir:compiler:callback    scheme
  • impc:ir:compiler:fptrcall    scheme
  • impc:ir:compiler:native-call    scheme
  • impc:ir:function-calling-convention    scheme
  • impc:ir:objectsize-intrinsic    scheme
  • impc:ti:callback    scheme
  • impc:ti:callback-check    scheme
  • impc:ti:closure-call-check    scheme
  • impc:ti:fptrcall-check    scheme
  • impc:ti:fptrcall-check    scheme
  • ipc:call    scheme
  • ipc:mapcall    scheme
  • json_object_p    xtlang
  • json_object_print_keys    xtlang
  • listener-callback    scheme
  • ocv_scheme_isopen_object    xtlang
  • ocv_scheme_release_object    xtlang
  • playbin_bus_call    xtlang
  • playbin_bus_call:GstBusFunc    xtlang
  • rtmidi_default_callback:RtMidiCCallback    xtlang
  • rtmidi_register_callback    xtlang
  • stbi_flip_vertically    xtlang
  • thread_native_call    xtlang
  • thread_native_call_with_zone    xtlang