Files
platform-espressif32/examples/espidf-exceptions/src/main.cpp
T

15 lines
283 B
C++
Raw Normal View History

#include "esp_log.h"
#define tag "ExceptionsTest"
extern "C" void app_main(void)
{
ESP_LOGI(tag, "Before try");
try {
ESP_LOGI(tag, "Before throw");
throw false;
ESP_LOGI(tag, "After throw");
} catch ( bool val ){
ESP_LOGI(tag, "catch");
}
ESP_LOGI(tag, "After try");
}