diff options
author | Colin Walters <walters@verbum.org> | 2012-02-03 13:20:00 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-02-03 13:20:57 -0500 |
commit | 39a70b7b108ed1a262de0b9dc3ffca944d9eee0f (patch) | |
tree | a3ef3ed0fdd5893f4672aceed9c267193919f534 /girepository/gitypes.h | |
parent | 79dcd9cd97b36b92a8f0dd0b94f40055fddbf7d4 (diff) | |
download | gobject-introspection-39a70b7b108ed1a262de0b9dc3ffca944d9eee0f.tar.gz |
girepository: Add GI_VFUNC_THROWS
Virtual functions can definitely throw an error. Right now the
scanner omits the GError parameter for them and adds throws="1", but
g-ir-compiler ignores this.
https://bugzilla.gnome.org/show_bug.cgi?id=669332
Diffstat (limited to 'girepository/gitypes.h')
-rw-r--r-- | girepository/gitypes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/girepository/gitypes.h b/girepository/gitypes.h index cbe43168..f83ea8bc 100644 --- a/girepository/gitypes.h +++ b/girepository/gitypes.h @@ -403,6 +403,7 @@ typedef enum * @GI_VFUNC_MUST_CHAIN_UP: chains up to the parent type * @GI_VFUNC_MUST_OVERRIDE: overrides * @GI_VFUNC_MUST_NOT_OVERRIDE: does not override + * @GI_VFUNC_THROWS: Includes a #GError * * Flags of a #GIVFuncInfo struct. */ @@ -410,7 +411,8 @@ typedef enum { GI_VFUNC_MUST_CHAIN_UP = 1 << 0, GI_VFUNC_MUST_OVERRIDE = 1 << 1, - GI_VFUNC_MUST_NOT_OVERRIDE = 1 << 2 + GI_VFUNC_MUST_NOT_OVERRIDE = 1 << 2, + GI_VFUNC_THROWS = 1 << 3 } GIVFuncInfoFlags; /** |