This fails for the same reason stated here, you need to split this into 2 “@static if…” clauses so the import is resolved before the macro is expanded
FPGro
5
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Is importing module is allowed inside @static? | 2 | 761 | September 20, 2019 | |
| Optionally loading a module | 6 | 1405 | August 28, 2017 | |
| Macro in macro with | 4 | 965 | February 2, 2019 | |
| Conditionally defining a macro | 1 | 434 | October 31, 2021 | |
| Macros not imported within blocks | 1 | 445 | September 21, 2020 |