Blender V4.3
GHOST_WaylandUtils.hh File Reference

Go to the source code of this file.

Macros

#define WL_ARRAY_FOR_EACH(pos, array)
 

Macro Definition Documentation

◆ WL_ARRAY_FOR_EACH

#define WL_ARRAY_FOR_EACH ( pos,
array )
Value:
for (pos = (decltype(pos))((array)->data); \
reinterpret_cast<const char *>(pos) < \
(reinterpret_cast<const char *>((array)->data) + (array)->size); \
(pos)++)

This macro causes a warning for C++ code, define our own. See: https://gitlab.freedesktop.org/wayland/wayland/-/issues/34

Definition at line 16 of file GHOST_WaylandUtils.hh.

Referenced by keyboard_handle_enter(), and xdg_toplevel_handle_configure().