Am 16.05.2014 21:23, schrieb Georg von Zengen:
an AVRDUDE library would be nice I think. But a library should never
call exit(), in my opinion. It makes debugging more complicated than
necessary. And even if it is not possible to proceed the decision
what to do should be left to the application developer.


I would agree with Georg.

How about a function like avrdude_fatal_error(int code, char * diag). It
could be implemented in main.c with e.g. an exit(). Library users can
implement it according to their needs. (E.g. drawing an exception in Python).

Best, Axel


_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to