2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-23 02:16:01 +01:00
waf/demos/vala/multi-file/main.vala
2011-09-10 11:13:51 +02:00

15 lines
303 B
Vala

int main(string[] args)
{
var loop = new MainLoop();
var foo = new Foo(loop);
foo.an_event.connect(() => {stdout.printf("Foo"); stdout.flush(); return false;});
var bar = new Bar(loop);
bar.an_event.connect(() => {stdout.printf("Bar\n"); loop.quit(); return false;});
loop.run();
return 0;
}