summaryrefslogtreecommitdiff
path: root/Examples/ocaml/scoped_enum/foo.h
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/ocaml/scoped_enum/foo.h')
-rw-r--r--Examples/ocaml/scoped_enum/foo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Examples/ocaml/scoped_enum/foo.h b/Examples/ocaml/scoped_enum/foo.h
new file mode 100644
index 0000000..8238cb6
--- /dev/null
+++ b/Examples/ocaml/scoped_enum/foo.h
@@ -0,0 +1,5 @@
+namespace foo {
+ enum Bar { Tag1, Tag2 };
+ static void f( Bar b ) { printf( "b = %d\n", (int)b ); }
+}
+