main/duktape_event.c
int esp32_duktape_waitForEvent(esp32_duktape_event_t* pEvent) {
	// Ask FreeRTOS to see if we have a new event.
#if defined(ESP_PLATFORM)
	BaseType_t rc = xQueueReceive(esp32_duktape_event_queue, pEvent, 0);
#else /* ESP_PLATFORM */
	int rc = 0;
#endif /* ESP_PLATFORM */
	return (int)rc;
}
/**
 * Check to see if there is an event to process.
 *
 * We return 0 to indicate that no event was caught.
 */
Check to see if there is an event to process.
We return 0 to indicate that no event was caught.
Check to see if there is an event to process . We return 0 to indicate that no event was caught .
int esp32_duktape_waitForEvent(esp32_duktape_event_t* pEvent) {
#if defined(ESP_PLATFORM)
	BaseType_t rc = xQueueReceive(esp32_duktape_event_queue, pEvent, 0);
#else 
	int rc = 0;
#endif 
	return (int)rc;
}
int esp32_duktape_waitForEvent ( esp32_duktape_event_t * pEvent ) { #if defined ( ESP_PLATFORM ) BaseType_t rc = xQueueReceive ( esp32_duktape_event_queue , pEvent , 0 ) ; #else int rc = 0 ; #endif return ( int ) rc ; }
Check to see if there is an event to process.
Check to see if there is an event to process .
// Ask FreeRTOS to see if we have a new event. /* ESP_PLATFORM */ /* ESP_PLATFORM */