On 19/07/2014 12:09 a.m., Domingo Alvarez Duarte wrote:
Thank you so much !

That did exactly what I was looking for, but now why I'm getting that
error message ?

Any help is welcome ! Cheers !

The generated code seems to fine:
----
debug assert(t.stackIndex > t.stackBase, (printStack(t),
printCallStack(t), "fail."));
static if(!is(typeof(__FUNCTION__))) {
     struct __FUNCTION {} const char[] __FUNCTION__ =
_getJustName(__FUNCTION.mangleof);
}
if((stackSize(t) - 1) < 1)
     throwStdException(t, "ApiError", __FUNCTION__ ~ " - not enough
parameters (expected {}, only have {} stack slots)", 1, stackSize(t) - 1);

----

I can't really tell at this point.
Try removing the code one line at a time (from the generation). You'll eventually work out what is killing it.

Reply via email to