Is there a lesser hard way to exit other than bu_exit()
?
I have a bunch of them in a libanalyze function, with bu_exit()
an error message windows appears and MGED closes itself like a crash. I find that a bit harsh.
Only solution that I can think of is to put return statements inside all functions inside libanalyze. Then evaluate these return values.
In case of errors, use return ANALYZE_ERROR
else use ANALYZE_OK
.
Sounds good. Turn the bu_exit(); statements into return ANALYZE_ERROR; ones.
yup, I have submitted two versions of patches. One with return and one with bu_exit.
Last updated: Jan 09 2025 at 00:46 UTC