High level GDNative
Single header GDNative high level API for C/C++
Loading...
Searching...
No Matches
Macros | Functions
Object functions

Helper functions to work with godot_object values. More...

Macros

#define hgdn_object_get(instance, property)   (hgdn_object_call(instance, "get", property))
 
#define hgdn_object_set(instance, property, value)   (hgdn_object_call(instance, "set", property, value))
 
#define hgdn_object_call(instance, method, ...)   (hgdn_object_callv_own((instance), (method), hgdn_new_array_args(__VA_ARGS__)))
 

Functions

HGDN_DECL godot_variant hgdn_object_callv (godot_object *instance, const char *method, const godot_array *args)
 
HGDN_DECL godot_variant hgdn_object_callv_own (godot_object *instance, const char *method, godot_array args)
 

Detailed Description

Macro Definition Documentation

◆ hgdn_object_call

#define hgdn_object_call (   instance,
  method,
  ... 
)    (hgdn_object_callv_own((instance), (method), hgdn_new_array_args(__VA_ARGS__)))
Note
In C++ and C11 the arguments passed are transformed by hgdn_new_variant, so primitive C data can be passed directly