Closed konchunas closed 4 years ago
For example
#define get_from_map(map, index, fallback) (case map[index] of | None -> fallback | Some(x) -> x end)
#define unpack_tuple_decl(a, aType, b, bType, tuple) const t : aType * bType = tuple; var a : aType := t.0; var b : bType := t.1;
Seems impossible since LIGO has removed C-preprocessor
For example