@@ -21,7 +21,7 @@
#include "lobject.h"
#include "lstate.h"
-
+#include "luat_malloc.h"
/*
** About the realloc function:
@@ -30,3 +30,6 @@ uint32_t luat_msgbus_freesize(void) {
return 1;
}
+uint8_t luat_msgbus_is_empty(void) {
+ return uxQueueMessagesWaiting(xQueue) == 0 ? 1 : 0;
+}