Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: ppapi/generators/test_cgen/enum_typedef.h

Issue 8161006: Allow enum values in IDL files to be simple arithmetic expressions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/generators/idl_parser.py ('k') | ppapi/generators/test_cgen/enum_typedef.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/test_cgen/enum_typedef.h
===================================================================
--- ppapi/generators/test_cgen/enum_typedef.h (revision 104195)
+++ ppapi/generators/test_cgen/enum_typedef.h (working copy)
@@ -22,11 +22,13 @@
* @addtogroup Enums
* @{
*/
-/* typedef enum { A = 1, B = 2, C = 3 } et1; */
+/* typedef enum { A = 1, B = 2, C = 3, D = A + B, E = ~D } et1; */
typedef enum {
A = 1,
B = 2,
- C = 3
+ C = 3,
+ D = A + B,
+ E = ~D
} et1;
/**
* @}
« no previous file with comments | « ppapi/generators/idl_parser.py ('k') | ppapi/generators/test_cgen/enum_typedef.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698