Module i_slint_compiler::builtin_macros

source ·
Expand description

This module contains the implementation of the builtin macros. They are just transformations that convert into some more complicated expression tree

Functions§

  • “Expand” the macro mac (at location n) with the arguments sub_expr
  • Generate an expression which is like min(lhs, rhs) if op is ‘<’ or max(lhs, rhs) if op is ‘>’. counter is an unique id. The rhs and lhs of the expression must have the same numerical type