From: Mikko Rasa Date: Sun, 1 Jul 2018 07:55:31 +0000 (+0300) Subject: Recognize in and out qualifiers for function parameters X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=684fadb0eb3e6a7dc274d6ed26abd28d5787d60d;p=libs%2Fgl.git Recognize in and out qualifiers for function parameters --- diff --git a/source/programparser.cpp b/source/programparser.cpp index e7343547..f38f3909 100644 --- a/source/programparser.cpp +++ b/source/programparser.cpp @@ -770,6 +770,9 @@ RefPtr ProgramParser::parse_function_declaration() expect(","); RefPtr var = new VariableDeclaration; + string token = peek_token(); + if(token=="in" || token=="out" || token=="inout") + var->interface = parse_token(); var->type = expect_type(); var->name = expect_identifier(); func->parameters.push_back(var);