Skip to content

Simplify compile time array copy

Leandro Ribeiro requested to merge leandrohrb/weston:array-copy-macro into main

In drm_fb_get_from_dmabuf() we have some compile time array copies, and multiple static_assert() calls are needed (for safety). This makes the code unpleasant to read. Add ARRAY_COPY macro, to simplify the code.

Suggested by @pq.

Merge request reports

Loading