Skip to content

Commit

Permalink
Fix syntax error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Dec 17, 2023
1 parent f3982e1 commit 15bac2d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/terraman_2d/defines.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#ifndef TERRAIN_2D_DEFINES_H
#define TERRAIN_2D_DEFINES_H
#define VARIANT_ARRAY_GET(arr)

/*************************************************************************/
/* defines.h */
Expand Down Expand Up @@ -33,11 +32,12 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

Vector<Variant> r;
for (int i = 0; i < arr.size(); i++) {
r.push_back(arr[i].get_ref_ptr());
}
return r;
#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(); \
Expand Down

0 comments on commit 15bac2d

Please sign in to comment.