After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 93239 - PATCH: implement GError** parameters as automatic throws()
PATCH: implement GError** parameters as automatic throws()
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.0
Other other
: Normal enhancement
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2002-09-13 17:32 UTC by Tassos Bassoukos
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
throw exceptions from errors: patch to _WRAP_METHOD (6.53 KB, patch)
2002-09-13 17:33 UTC, Tassos Bassoukos
none Details | Review

Description Tassos Bassoukos 2002-09-13 17:32:10 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.
Comment 1 Tassos Bassoukos 2002-09-13 17:33:40 UTC
Created attachment 11065 [details] [review]
throw exceptions from errors: patch to _WRAP_METHOD
Comment 2 Murray Cumming 2002-09-13 20:23:22 UTC
Applied. It's good to have someone else who knows perl.
Comment 3 Tassos Bassoukos 2002-09-13 20:26:17 UTC
well, my near-sightedness got worse while hacking at method.m4 ...
And they say *perl* is a write-only language! Sheesh!