reflectGetUnittest

Members

Variables

reflectGetUnittest
enum string reflectGetUnittest;
Undocumented in source.
reflectGetUnittest
enum string reflectGetUnittest;
Undocumented in source.

Examples

enum E
{
    @reflectUnittest!"c++"("assert(E::a == 0);")
    a,
    @reflectUnittest!"c++"("assert(E::b == 1);")
    b,
    c,
}

static assert(reflectGetUnittest!"c++"(E.a) == "assert(E::a == 0);");
static assert(reflectGetUnittest!"c++"(E.b) == "assert(E::b == 1);");
static assert(reflectGetUnittest!"c++"(E.c) is null);

struct S
{
    @reflectUnittest!"c++"("alpha")
    int a;
}

static assert(reflectGetUnittest!("c++", S.a) == "alpha");

Meta