Introduce g_static_assert. (#14651)
commit07c5ecdf7ba1987dc181d9b31ecbadd95224de91
authorJay Krell <jay.krell@cornell.edu>
Mon, 27 May 2019 19:33:46 +0000 (27 12:33 -0700)
committerAleksey Kliger (λgeek) <alklig@microsoft.com>
Mon, 27 May 2019 19:33:46 +0000 (27 15:33 -0400)
tree8f6b3f804e8b9dc966def599b2b9651ebf489805
parent15eb9f7ba1b7de945e78c8f35a89eb98b947c428
Introduce g_static_assert. (#14651)

ifdef __cplusplus
define g_static_assert(x) static_assert (x, "")
else
define g_static_assert(x) g_assert (x)
endif

It is, granted, C++11, not C++98, and some C variations.
mono/eglib/glib.h
mono/metadata/monitor.c
mono/mini/method-to-ir.c
mono/utils/mono-rand.c