for (i = 0; i < count; ++i) {
if (ast_istype(self->params[i], ast_argpipe)) {
- // warn about type safety instead
+ /* warn about type safety instead */
if (i+1 != count) {
compile_error(ast_ctx(self), "argpipe must be the last parameter to a function call");
return false;
if (count > vec_size(func->params) && func->varparam) {
for (; i < count; ++i) {
if (ast_istype(self->params[i], ast_argpipe)) {
- // warn about type safety instead
+ /* warn about type safety instead */
if (i+1 != count) {
compile_error(ast_ctx(self), "argpipe must be the last parameter to a function call");
return false;
ast_expression *idx, *out;
ast_value *typevar;
ast_value *funtype = parser->function->vtype;
+ lex_ctx ctx = parser_ctx(parser);
if (!parser->function->varargs) {
parseerror(parser, "function has no variable argument list");
return NULL;
}
- lex_ctx ctx = parser_ctx(parser);
-
if (!parser_next(parser) || parser->tok != '(') {
parseerror(parser, "expected parameter index and type in parenthesis");
return NULL;