|
Last change
on this file since 9ff71ff was 8bb86ce, checked in by JiadaL <j82liang@…>, 3 years ago |
|
Clean up some code related to Enum codegen
|
-
Property mode
set to
100644
|
|
File size:
452 bytes
|
| Line | |
|---|
| 1 | #include <stdio.h>
|
|---|
| 2 |
|
|---|
| 3 | enum(int) IntEnum {
|
|---|
| 4 | zero,
|
|---|
| 5 | one,
|
|---|
| 6 | thousand = 1000,
|
|---|
| 7 | thousand_one,
|
|---|
| 8 | two_thousand = 2000,
|
|---|
| 9 | two_thousand_one,
|
|---|
| 10 | two_thousand_two
|
|---|
| 11 | };
|
|---|
| 12 |
|
|---|
| 13 | int main() {
|
|---|
| 14 | printf("0=%d\n", zero);
|
|---|
| 15 | printf("1=%d\n", one);
|
|---|
| 16 | printf("1000=%d\n", thousand);
|
|---|
| 17 | printf("1001=%d\n", thousand_one);
|
|---|
| 18 | printf("2000=%d\n", two_thousand);
|
|---|
| 19 | printf("2001=%d\n", two_thousand_one);
|
|---|
| 20 | printf("2002=%d\n", two_thousand_two);
|
|---|
| 21 | return 0;
|
|---|
| 22 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.