Non-consistent exit statuses #51
Labels
kind: cleanup
should be clean
kind: wish
new feature or enhancement request
part: library
library usage specific
priority: low
linked to weak improvements or to a distant deadline
The exit statuses of functions are non-consistent in the library, e.g.,
PMMG_Set_meshSize
returns1
on success, whilePMMG_bdryUpdate
returnsPMMG_SUCCESS
(defined to0
) on success. Would it be possible to follow the standard and always return0
(orPMMG_SUCCESS
) on success? Otherwise, it makes error checking in calling libraries extremely difficult to handle, see, e.g., https://gitlab.com/petsc/petsc/-/merge_requests/4889#note_863666426, as one needs to jump back and forth betweenif (return code != 1) // calling-library custom error-handling
andif (return code != 0) // calling-library custom error-handling
.The text was updated successfully, but these errors were encountered: