[riot-notifications] [RIOT-OS/RIOT] core: add irq_is_enabled() function to irq interface (#11117)

Hauke Petersen notifications at github.com
Thu Aug 19 12:52:43 CEST 2021


> Btw: Why does this return int when all the other irq_* functions return unsigned?

I have simply the tendency to always use int for boolean return values when doing low-level C coding, hence the int in this case. Did never really mind the return values of the other functions in this module as of now. I personally don't have a strong preference, both get the job done. Would you prefer using unsigned?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11117#issuecomment-901813718
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210819/42b9f51e/attachment-0001.htm>


More information about the notifications mailing list