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    /digego/extempore/tree/v0.8.9/libs/external/portaudio.xtm
  • PaStreamCallbackTimeInfo_toString    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portaudio.xtm
  • _glib_main_loop_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/slideshow.xtm
  • _glib_main_loop_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm
  • _glib_main_loop_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo.xtm
  • _gst_main_loop_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mediaplayer.xtm
  • _playbin_bus_call:GstBusFunc    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mediaplayer.xtm
  • audio_callback:PaStreamCallback    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/portaudio.xtm
  • audio_callback:PaStreamCallback    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/portaudio.xtm
  • bind-object    macro    /digego/extempore/tree/v0.8.9/libs/core/xobject.xtm
  • call-as-xtlang    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • call-as-xtlang-leaky    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • call-cpp    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • call-with-input-file    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • call-with-output-file    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • call/cc    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • callback    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • callback-adapter    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • callback-test2-helper    xtlang    /digego/extempore/tree/v0.8.9/tests/core/xtlang.xtm
  • callback_goodbye_world    xtlang    /digego/extempore/tree/v0.8.9/examples/external/ulfius.xtm
  • callback_hello_world    xtlang    /digego/extempore/tree/v0.8.9/examples/external/ulfius.xtm
  • clock_scheduler_main_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/core/scheduler.xtm
  • curl_write_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • glfw_char_callback:GLFWcharfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_cursor_position_callback:GLFWcursorposfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_error_callback:GLFWerrorfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_key_callback:GLFWkeyfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_mouse_button_callback:GLFWmousebuttonfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_window_focus_callback:GLFWwindowfocusfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_window_position_callback:GLFWwindowposfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • gobject_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gobject_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gobject_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • godot_call    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm
  • godot_call    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm
  • godot_call    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm
  • godot_call    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm
  • godot_method_bind_call    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • godot_method_bind_ptrcall    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • godot_variant_as_object    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • gui_window_size_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • h3d_object_pos    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/bullet.xtm
  • h3d_object_size    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/bullet.xtm
  • impc:ir:compiler:callback    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:fptrcall    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:native-call    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:function-calling-convention    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:objectsize-intrinsic    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ti:callback    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:callback-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:closure-call-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:fptrcall-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:fptrcall-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • ipc:call    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • ipc:mapcall    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • json_object_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • json_object_print_keys    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • listener-callback    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg.xtm
  • ocv_scheme_isopen_object    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/xtmcv.xtm
  • ocv_scheme_release_object    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/xtmcv.xtm
  • playbin_bus_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo.xtm
  • playbin_bus_call:GstBusFunc    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm
  • rtmidi_default_callback:RtMidiCCallback    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/rtmidi.xtm
  • rtmidi_register_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/rtmidi.xtm
  • stbi_flip_vertically    xtlang    /digego/extempore/tree/v0.8.9/libs/external/stb_image.xtm
  • thread_native_call    xtlang    /digego/extempore/tree/v0.8.9/libs/core/xthread.xtm
  • thread_native_call_with_zone    xtlang    /digego/extempore/tree/v0.8.9/libs/core/xthread.xtm