diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-01-10 13:32:44 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-01-11 12:05:38 +0100 |
commit | d5cd85d1a1ab2368a3dc8443ee5969e66aabc8ad (patch) | |
tree | f1603784da34cfa9d53cdf82950c0a7afb3af270 /libbindgen/tests/headers/constify-enum.h | |
parent | 4663ae9d7187fb4c7420bca8fedc6acdf0cea39d (diff) |
codegen: Constify enum variants.
Diffstat (limited to 'libbindgen/tests/headers/constify-enum.h')
-rw-r--r-- | libbindgen/tests/headers/constify-enum.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libbindgen/tests/headers/constify-enum.h b/libbindgen/tests/headers/constify-enum.h new file mode 100644 index 00000000..f2771e59 --- /dev/null +++ b/libbindgen/tests/headers/constify-enum.h @@ -0,0 +1,13 @@ + +enum nsCSSPropertyID { + eCSSProperty_a, + eCSSProperty_b, + + eCSSProperty_COUNT, /**< <div rustbindgen constant></div> */ + eCSSProperty_COUNT_DUMMY2 = eCSSProperty_COUNT - 1, /**< <div rustbindgen constant></div> */ + + eCSSPropertyAlias_aa, + eCSSPropertyAlias_bb, + + eCSSProperty_COUNT_unexistingVariantValue, /**< <div rustbindgen constant></div> */ +}; |