docs
Loading...
Searching...
No Matches
Reflection.h

Macros

#define ULTRALIGHT_REFLECTION   1
 Whether or not enums and aggregate structs convert automatically (1 on Clang, GCC, and MSVC 19.40+, ie.

Macro Definition Documentation

◆ ULTRALIGHT_REFLECTION

#define ULTRALIGHT_REFLECTION   1

Whether or not enums and aggregate structs convert automatically (1 on Clang, GCC, and MSVC 19.40+, ie.

Visual Studio 2022 17.10 or later).

The automatic conversions read enumerator and field names from the compiler. When this is 0, enums and aggregate structs have no built-in conversion, so you'll need to specialize js::TypeTraits for the ones you use (and dom::data::ValueTraits or dom::data::TypeTraits for the ones you bind with the data-binding API). Every other built-in conversion is unaffected.

To turn it off, define ULTRALIGHT_REFLECTION=0 before including any Ultralight header.

Go to the source code of this file.