mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-19 07:55:54 +00:00
freertos: Add CHOOSE_MACRO_VA_ARG selector
This commit adds a CHOOSE_MACRO_VA_ARG() selector to allow selection between two versions of a macro based on the number of arguments. This replaces the previous portGET_ARGUMENT_COUNT() selector. - portYIELD_FROM_ISR() now uses CHOOSE_MACRO_VA_ARG() - portYIELD_FROM_ISR(arg) version added to risc-v port - Old vPortEvaluateYieldFromISR() and portGET_ARGUMENT_COUNT removed
This commit is contained in:
@@ -298,7 +298,6 @@ void esp_log_writev(esp_log_level_t level, const char* tag, const char* format,
|
||||
|
||||
/// macro to output logs in startup code, before heap allocator and syscalls have been initialized.
|
||||
/// Log at ``ESP_LOG_ERROR`` level. @see ``printf``,``ESP_LOGE``,``ESP_DRAM_LOGE``
|
||||
#define portGET_ARGUMENT_COUNT_INNER(zero, one, count, ...) count
|
||||
|
||||
/**
|
||||
* In the future, we want to switch to C++20. We also want to become compatible with clang.
|
||||
|
Reference in New Issue
Block a user