Helper function for dealing with C-style enums which are coded as lists in R

enum_lookup(enum, value)

Arguments

enum

named list of integers representing an enum

value

the enum integer value

Value

return character string name or NULL

See also

Examples

if (FALSE) { cairo_antialias_t enum_lookup(cairo_antialias_t, 3) }