Fix OCaml %rename for enum items
This commit is contained in:
parent
6f1532e35a
commit
76f5670fa4
3 changed files with 18 additions and 4 deletions
10
Examples/test-suite/ocaml/enum_rename_runme.ml
Normal file
10
Examples/test-suite/ocaml/enum_rename_runme.ml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
open Swig
|
||||
open Enum_rename
|
||||
|
||||
let mydec = C_enum `M_Dec
|
||||
let _ = assert (((enum_to_int `Month mydec)) = C_int 2)
|
||||
let _ = assert (((int_to_enum `Month 2)) = C_enum `M_Dec)
|
||||
|
||||
let mymay = C_enum `May
|
||||
let _ = assert (((enum_to_int `Month mymay)) = C_int 1)
|
||||
let _ = assert (((int_to_enum `Month 1)) = C_enum `May)
|
||||
Loading…
Add table
Add a link
Reference in a new issue