I have .lib
with some functions. I define that when the calculation of some function generates values outside the allowed range it gives a exit()
.
Now my code in C ++ that uses this lib needs to compute some of these functions but if the function that I compute in midstream generates an exit it aborts and does not calculate the others. Is there any way to check if it returns in an exit or not, and if it returns skip the function?
I'm not sure if there would be a better flag for values outside the allowed range other than the exit . I would try to return Null;
but some of these functions generate vector<double>
What would be the best way to do this?