projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10ec57e
)
tests/enum.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 29 May 2015 03:31:20 +0000
(11:31 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 29 May 2015 03:31:20 +0000
(11:31 +0800)
tests/enum.vala
patch
|
blob
|
history
diff --git
a/tests/enum.vala
b/tests/enum.vala
index
bfe1a77
..
585a18e
100644
(file)
--- a/
tests/enum.vala
+++ b/
tests/enum.vala
@@
-1,9
+1,17
@@
// compile
-// valac --pkg gtk+-3.0 enum.vala -o /tmp/enum
+// valac --pkg gtk+-3.0 enum.vala
--pkg libvala-0.26
-o /tmp/enum
// ??--pkg javascriptcore \
int main (string[] args) {
+
+ var max = (int)Vala.TokenType.YIELD +1;
+ for (var i =0; i < max;i++) {
+ var m = (Vala.TokenType)i;
+ print(m.to_string());
+ }
+
+
Gtk.init(ref args);
var type = typeof(Gtk.Box);
var ocl = (ObjectClass) type.class_ref ();