[Vala] Comfortable error handling for non-GLib C functions?



Hi,

is it possible to declare in a vapi binding via attribute that a certain
exception (error) should be raised (that can be handled via try...catch
in Vala code) when the return value of the C function is NULL or, more
generally, meets a certain condition (e.g. negative return value)?

Regards,

Frederik



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]