[L2Ork-dev] mapping enum to string

Jonathan Wilkes jon.w.wilkes at gmail.com
Wed Jan 8 20:41:42 EST 2020


Hi list,

I thought about using the attached for my little scripting class for
Purr Data. It maps enum fields to strings and supplies getters for
parsing and serializing.

Is it portable C? I don't see any problems with it, but I was surprised
I couldn't find anything like it on the web for going both directions
with the mapping.

-Jonathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 1811 bytes
Desc: not available
URL: <http://disis.music.vt.edu/pipermail/l2ork-dev/attachments/20200108/859c21a2/attachment.c>


More information about the L2Ork-dev mailing list