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);

----

Reply via email to