Fix syntax error.

This commit is contained in:
Relintai 2023-12-18 00:46:28 +01:00
parent f3982e12c7
commit 15bac2d514

View File

@ -1,6 +1,5 @@
#ifndef TERRAIN_2D_DEFINES_H #ifndef TERRAIN_2D_DEFINES_H
#define TERRAIN_2D_DEFINES_H #define TERRAIN_2D_DEFINES_H
#define VARIANT_ARRAY_GET(arr)
/*************************************************************************/ /*************************************************************************/
/* defines.h */ /* defines.h */
@ -33,11 +32,12 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/ /*************************************************************************/
Vector<Variant> r; #define VARIANT_ARRAY_GET(arr) \
for (int i = 0; i < arr.size(); i++) { Vector<Variant> r; \
r.push_back(arr[i].get_ref_ptr()); for (int i = 0; i < arr.size(); i++) { \
} r.push_back(arr[i].get_ref_ptr()); \
return r; } \
return r;
#define VARIANT_ARRAY_SET(arr, arr_into, type) \ #define VARIANT_ARRAY_SET(arr, arr_into, type) \
arr_into.clear(); \ arr_into.clear(); \