Blender V4.3
GHOST_WaylandUtils.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022-2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#undef wl_array_for_each
16#define WL_ARRAY_FOR_EACH(pos, array) \
17 for (pos = (decltype(pos))((array)->data); \
18 reinterpret_cast<const char *>(pos) < \
19 (reinterpret_cast<const char *>((array)->data) + (array)->size); \
20 (pos)++)