Skip to content

Commit

Permalink
fix(asio): Removes esp_exception and make all examples to use exceptions
Browse files Browse the repository at this point in the history
The usage of esp_exception header defining the exception handler
prevents users to customize the exception treatment. By removing it
we allow users that want to run without exceptions to customize the
behavior.
  • Loading branch information
euripedesrocha committed Oct 5, 2023
1 parent af1f39e commit a2b1a89
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 31 deletions.
8 changes: 8 additions & 0 deletions components/asio/examples/async_request/sdkconfig.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
CONFIG_COMPILER_CXX_EXCEPTIONS=y

#
# Partition Table
#
# Leave some room for larger apps without needing to reduce other features
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ CONFIG_ASIO_SSL_SUPPORT=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
CONFIG_COMPILER_CXX_EXCEPTIONS=y

#
# Partition Table
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
CONFIG_COMPILER_CXX_EXCEPTIONS=y

#
# Partition Table
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
CONFIG_COMPILER_CXX_EXCEPTIONS=y

#
# Partition Table
Expand Down
31 changes: 0 additions & 31 deletions components/asio/port/include/esp_exception.h

This file was deleted.

0 comments on commit a2b1a89

Please sign in to comment.