GNOME Bugzilla – Bug 635359
Throw an exception when failing to look up a foreign struct
Last modified: 2010-12-06 15:14:40 UTC
Returning failure without setting an exception was causing control to mysteriously jump out of the enclosing function. The function is also changed to g_assert() rather than returning NULL when a non-interface GITypeInfo is passed in - it's a case that should not happen if the calling code is correct so throwing an exception doesn't make sense.
Created attachment 174916 [details] [review] Throw an exception when failing to look up a foreign struct
Review of attachment 174916 [details] [review]: Looks right.
Attachment 174916 [details] pushed as d4103f4 - Throw an exception when failing to look up a foreign struct