diff options
author | Jürg Billeter <j@bitron.ch> | 2012-08-01 11:39:40 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2012-08-01 11:39:40 +0200 |
commit | 3cda0bdebb78d57b357ca784265cea3dd810d7f7 (patch) | |
tree | 0450ba5d17aaa350a093e1dc297b136ce572a520 /ccode | |
parent | 11cc71a31783718268e92add3e5f2cebe328a206 (diff) | |
download | vala-3cda0bdebb78d57b357ca784265cea3dd810d7f7.tar.gz |
codegen: Fix va_start argument in methods throwing errors
Fixes bug 620673.
Diffstat (limited to 'ccode')
-rw-r--r-- | ccode/valaccodefunction.vala | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ccode/valaccodefunction.vala b/ccode/valaccodefunction.vala index ddbc8121e..d54215b13 100644 --- a/ccode/valaccodefunction.vala +++ b/ccode/valaccodefunction.vala @@ -1,6 +1,6 @@ /* valaccodefunction.vala * - * Copyright (C) 2006-2010 Jürg Billeter + * Copyright (C) 2006-2012 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -80,6 +80,14 @@ public class Vala.CCodeFunction : CCodeNode { parameters.insert (position, param); } + public int get_parameter_count () { + return parameters.size; + } + + public CCodeParameter get_parameter (int position) { + return parameters[position]; + } + /** * Returns a copy of this function. * |