sciapp / gr

GR framework: a graphics library for visualisation applications
Other
329 stars 54 forks source link

C API error handling #76

Closed v0dro closed 5 years ago

v0dro commented 5 years ago

I searched the code base but could not find any standardized way in which GR handles errors. Most C libraries that I've worked with in the past return some integer value from functions in case they fail.

What sort of mechanism is followed for this purpose in GR? Am I missing something?

FlorianRhiem commented 5 years ago

The current error handling mostly consists of reporting the error and if there is no way of recovery (e.g. when the system is out of memory), aborting the program.