2022-03-15 13:29:32 +01:00
|
|
|
|
|
|
|
#ifndef VOXEL_DEFINES_H
|
|
|
|
#define VOXEL_DEFINES_H
|
|
|
|
|
|
|
|
#define VARIANT_ARRAY_GET(arr) \
|
|
|
|
Vector<Variant> r; \
|
|
|
|
for (int i = 0; i < arr.size(); i++) { \
|
|
|
|
r.push_back(arr[i].get_ref_ptr()); \
|
|
|
|
} \
|
|
|
|
return r;
|
|
|
|
|
|
|
|
#define VARIANT_ARRAY_SET(arr, arr_into, type) \
|
|
|
|
arr_into.clear(); \
|
|
|
|
for (int i = 0; i < arr.size(); i++) { \
|
|
|
|
Ref<type> e = Ref<type>(arr[i]); \
|
|
|
|
arr_into.push_back(e); \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define CONNECT(sig, obj, target_method_class, method) connect(sig, obj, #method)
|
|
|
|
#define DISCONNECT(sig, obj, target_method_class, method) disconnect(sig, obj, #method)
|
|
|
|
|
2022-03-16 09:02:48 +01:00
|
|
|
#endif
|