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