I've used Matlab (this is the easiest language for me) to generate a Lua dissector from an XML file describing a protocol.
The issue right now, is that it is generating too many local (global) variables and I'm getting the
Many of the variables (~150) are due to some enumeration.
Any suggestion how to solve it?
asked 10 Aug '17, 01:27
edited 10 Aug '17, 01:39
I realize this is an old question on a now-obsolete Q&A site, but in case anyone finds themselves in this situation, one solution is to group variables together into a Lua table.
For example, instead of:
use something like:
answered 31 Jul '18, 09:15