Stream: brlcad

Topic: exiting


view this post on Zulip Saran Narayan (May 21 2018 at 20:29):

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.

view this post on Zulip Saran Narayan (May 21 2018 at 20:39):

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.

view this post on Zulip Daniel Rossberg (May 22 2018 at 17:23):

Sounds good. Turn the bu_exit(); statements into return ANALYZE_ERROR; ones.

view this post on Zulip Saran Narayan (May 22 2018 at 17:26):

yup, I have submitted two versions of patches. One with return and one with bu_exit.


Last updated: Oct 09 2024 at 00:44 UTC