Skip to content

Commit c1c9350

Browse files
fix(asio): Removes esp_exception and make all examples to use exceptions
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.
1 parent 60d7145 commit c1c9350

File tree

5 files changed

+11
-31
lines changed

5 files changed

+11
-31
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
2+
CONFIG_COMPILER_CXX_EXCEPTIONS=y
3+
4+
#
5+
# Partition Table
6+
#
7+
# Leave some room for larger apps without needing to reduce other features
8+
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y

components/asio/examples/ssl_client_server/sdkconfig.defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ CONFIG_ASIO_SSL_SUPPORT=y
22
CONFIG_PARTITION_TABLE_CUSTOM=y
33
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
44
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
5+
CONFIG_COMPILER_CXX_EXCEPTIONS=y
56

67
#
78
# Partition Table

components/asio/examples/tcp_echo_server/sdkconfig.defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
2+
CONFIG_COMPILER_CXX_EXCEPTIONS=y
23

34
#
45
# Partition Table

components/asio/examples/udp_echo_server/sdkconfig.defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
2+
CONFIG_COMPILER_CXX_EXCEPTIONS=y
23

34
#
45
# Partition Table

components/asio/port/include/esp_exception.h

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)