GNOME Bugzilla – Bug 93239
PATCH: implement GError** parameters as automatic throws()
Last modified: 2004-12-22 21:47:04 UTC
This patch modifies _WRAP_METHOD to take an extra parameter "errthrow" for C functions that have a last parameter "GError** error" for error returns. When "errthrow" is present, the generated code will check this error and if present, will throw a C++ exception of the apropriate type. Note that this last parameter should not be present in the C++ method's parameter list.
Created attachment 11065 [details] [review] throw exceptions from errors: patch to _WRAP_METHOD
Applied. It's good to have someone else who knows perl.
well, my near-sightedness got worse while hacking at method.m4 ... And they say *perl* is a write-only language! Sheesh!