ui_app

source of std::macros

1// The built-in compile-time macros (LANGUAGE_SPEC.md section 7.4).2//3// Like the standard interfaces, these are declared but not implemented:4// a declaration-only macro carries no body, and the compiler supplies the5// behavior when one is invoked. Like every macro they are called with a6// leading `'#'` and run at compile time.78// The type of the argument expression (section 4.4).9exp macro type_of(value) -> type;1011// A fresh, empty struct type, for synthesising one.12exp macro struct_type() -> type;1314// A fresh, empty enum type.15exp macro enum_type() -> type;1617// Every type in the merged unit implementing the interface,18// whole-world across libraries (section 7.4).19exp macro implementers_of(target) -> [type];2021// The variant name of an enum value, as a string.22exp macro name_of(value) -> [u8];2324// The bytes of a project file, read at compile time as static data. The25// path resolves against the entry module's directory and must not escape26// it (section 7.2). Distinct from std::io's runtime read_file: this one27// is a macro, invoked `#read_file(...)` during compile-time evaluation.28exp macro read_file(path) -> [u8];