Browse Source

Fixed parsing of function code gen info to be more robust.

pull/49/head
triton 12 years ago committed by Dimitar Dobrev
parent
commit
3f6dac4a50
  1. 2
      src/Parser/Parser.cpp

2
src/Parser/Parser.cpp

@ -1621,6 +1621,8 @@ void Parser::WalkFunction(clang::FunctionDecl* FD, CppSharp::AST::Function^ F, @@ -1621,6 +1621,8 @@ void Parser::WalkFunction(clang::FunctionDecl* FD, CppSharp::AST::Function^ F,
// Skip the first argument as it's the return type.
if (I == CGInfo.arg_begin())
continue;
if (Index >= F->Parameters->Count)
continue;
F->Parameters[Index++]->IsIndirect = I->info.isIndirect();
}
}

Loading…
Cancel
Save