PLC-lang / rusty

Structured Text Parser and LLVM Frontend
GNU Lesser General Public License v3.0
223 stars 53 forks source link

feat: builtins ADR and REF now have a CONSTANT return specifier #1326

Closed mhasel closed 1 month ago

mhasel commented 1 month ago

…so they can be used in initializers.

Adds a new {constant} pragma for POUs, however for now only the builtins are actually allowed to make use of it. This enables the const-evaluator to check for constant builtins when trying to evaluate call-statements in variable initializers.