No there is not. Gen variables are local to the parent gen instance and work fine in poly.

However, depending on your gen code, gen in poly is a bit of a nightmare as gen is not yet voice management / loading aware, so if you have many voices and / or a large gen patch, the parent poly will take ages to load and switching on dsp will also take ages.

Best thing to do is click the export buttom and compile an external with the resulting code.