imagej / imagej-legacy

ImageJ+ImageJ2 compatibility layer
https://imagej.net/libs/imagej-legacy
BSD 2-Clause "Simplified" License
16 stars 25 forks source link

Move parameter initialization to the end of macros #199

Closed imagejan closed 6 years ago

imagejan commented 6 years ago

We now declare global variables with var in a prefix of the first line of a macro, and assign their values in a helper function appended to the end of the macro. To make this possible, we need to fix variable parsing to remove the (g) suffix of global variables returned by Interpreter.getVariables().

Fixes #197.

ctrueden commented 6 years ago

Thank you @imagejan !