util: add helpers to define bitwise operators on enums for C++
authorKarol Herbst <kherbst@redhat.com>
Mon, 31 Aug 2020 16:29:10 +0000 (18:29 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Sep 2020 17:45:08 +0000 (17:45 +0000)
commit76a1fb3b42c245a425fde55b97a393d3e1984112
treeeea970439cd0c7c49930e4a145b36ea360086a86
parent24dfd798d6205fd545dd988eb6c9dd2eae5b7929
util: add helpers to define bitwise operators on enums for C++

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6520>
src/util/Makefile.sources
src/util/enum_operators.h [new file with mode: 0644]
src/util/meson.build