On 2018-05-16 17:46:59 +0000, Steven Schveighoffer said:

Well, for C see above on the D side:

    extern(C) {
          result myfunc(double x, double y, const char *text, stuff *myStuff, bool measureOnly);
    }

Shouldn't the result be a pointer?

Indeed. And you know what? That was causing the problem.

So, having a wrong return-type here, resulted in the const char *text parameter always being NULL. Not sure I understand the relation but looks strange to me... at least not very obvious.

--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster

Reply via email to