Export enum conversion procedures
The sdl2 module should publicly export the procedures for converting enum symbols to and from integers (e.g. keycode->symbol
and symbol->keycode
). This would allow developers to do certain things, such as programmatically checking whether or not a symbol is a valid enum.
Before we export the procedures, they should be renamed, to reflect the fact that the symbols are the preferred representation of the enums, and the integers are just an implementation detail.
-
symbol->foo
becomesfoo->int
-
foo->symbol
becomesint->foo