[riot-notifications] [RIOT-OS/RIOT] sys/net/gnrc_pktbuf: deduplicate code (#15839)

Martine Lenders notifications at github.com
Fri Jan 22 18:44:45 CET 2021


@miri64 commented on this pull request.



> + *
+ * @warning This mutex will be ***internally*** locked and unlocked and should
+ *          not be touched by external code
+ */
+extern mutex_t gnrc_pktbuf_mutex;
+
+#if IS_USED(MODULE_GNRC_PKTBUF_STATIC) || DOXYGEN
+/**
+ * @brief   The actual static buffer used when module gnrc_pktbuf_static is used
+ *
+ * @warning This is an internal buffer and should not be touched by external code
+ */
+extern uint8_t *gnrc_pktbuf_static_buf;
+#endif
+
+#if IS_USED(MODULE_GNRC_PKTBUF_STATIC) || DOXYGEN

Can we pull the `IS_USED()` into the function?

-- 
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/15839#pullrequestreview-574479227
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210122/5903b632/attachment.htm>


More information about the notifications mailing list