code.c is C code ( according to the file extension ), so variables should be declared at the beginning of the function.
void setupFuncall(struct Context* ctx, naRef func, naRef args)
{
+ struct Frame* f;
if(!IS_FUNC(func) ||
!(IS_CCODE(func.ref.ptr.func->code) ||
IS_CODE(func.ref.ptr.func->code)))
ERR(ctx, "function/method call invoked on uncallable object");
}
- struct Frame* f;
f = &(ctx->fStack[ctx->fTop++]);
f->func = func;
f->ip = 0;