Syntactic sugar for enum-like FFI structs. For LuaJIT.