Look up the enum constant name for an integer value.
Examples
if (FALSE) { # \dontrun{
Color <- ffi_enum(RED = 0L, GREEN = 1L, BLUE = 2L)
ffi_int_to_enum(Color, 1L) # "GREEN"
} # }
Look up the enum constant name for an integer value.
if (FALSE) { # \dontrun{
Color <- ffi_enum(RED = 0L, GREEN = 1L, BLUE = 2L)
ffi_int_to_enum(Color, 1L) # "GREEN"
} # }