Add a simple Mx example.
[girtod.git] / mixin / Gtk2__MODULE.d
blobbf9f031ffc23ef28f83823b3a26a9bbe968be9d9
2 // An overload of gtk.init() that works with D strings.
3 // Unlike the original, it does not need to modify the inputs.
4 // Returns a new string array (that can be assigned to the argv
5 // array in the caller).
7 string[] init()(string argv[]) {
8 int argc = argv.length;
9 auto c_argv = argvToC(argv);
10 init(&argc, &c_argv);
11 return argvFromC(argc, c_argv);