> Is there any way to declare a global enum in fluid? i.e. something
> that results in the following:
>
> enum MyEnum {
>    state1,
>    state2
> };
>
> int main(int argc, char *argv[])
> {
>    return Fl::run();
> }
>
> fluid doesn't allow a code block at the top-most level. If it did,
> this would be trivial. I've tried to fake it with a declaration block,
> but it will complain about an unterminated '{'.
>

I've used declaration blocks before to do similar things (like
using namesapce blah blah), so it seems like this should work too.
Who complains about the syntax?

Best,
Stan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to