Dump mixins (preprocessed/generated) code

Rikki Cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 18 05:30:10 PDT 2014


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.


More information about the Digitalmars-d-learn mailing list