@{import("boot.mc");}
|
|
|
|
enum foo { Closed = 0, ReadOnly = 1, WriteOnly = 2 };
|
|
|
|
@{
|
|
idToString(x) {{ __proto__: C_string, value: "\"" + string(x.name.identifier) + "\"" }}
|
|
notToken(x) { x.__proto__ != Token }
|
|
}
|
|
|
|
static char ∗stateNames[] = { @(map(idToString, properties.enums.foo.enumList, notToken)) };
|