[Emulink] bugfix for codegeneration (runtime error due to undefined variable)
Merge remote-tracking branch 'origin/master' into beta