main

Code to be mixed in at the top of your main() function.

enum main = q{ version (xgettext) { if (scan) // Prevent unreachable code warning after mixin. { import std.traits : ReturnType; static if (is (ReturnType!main == void)) return; else return 0; } } };

Examples

void main()
{
    import gettext;
    mixin(gettext.main);

    // Your code.
}

Meta