Follow-up Comment #1, patch #6418 (project avr-libc): Following David Brown's suggestion of using __builtin_constant_p() GCC function to test the macro arguments I have uploaded a new version of the headers. The main changes are:
- Errors emitted are controlled and now error messages are clear. Extra lines of printed messages also help the IDEs to locate the source line of error in the C code. - Argument range checking is performed on the delay time intervals. - Comments were updated with the changes and some modifications were introduced for Doxygen compatibility. - Some internal use macros called only once from __SHORT_DELAY() in the headers have been eliminated (moving the code to the caller) to reduce the number of macro definitions. Everything else remains the same. (file #15289) _______________________________________________________ Additional Item Attachment: File name: delay2.tgz Size:6 KB _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?6418> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev