We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee3f7e commit b456446Copy full SHA for b456446
contrib/aws-cmake/aws_stubs.cpp
@@ -4,21 +4,15 @@
4
5
extern "C" {
6
7
-#define AWS_TRAP(sym) \
8
- __attribute__((weak)) void sym() { \
9
- std::fprintf(stderr, "TRAPPED: " #sym " called\n"); \
10
- std::abort(); \
11
- }
12
-
13
#define AWS_NOOP(sym) \
14
__attribute__((weak)) void sym() { \
15
/* No operation */ \
16
}
17
18
-AWS_TRAP(aws_tls_client_ctx_new)
19
-AWS_TRAP(aws_tls_server_ctx_new)
20
-AWS_TRAP(aws_tls_init_static_state)
21
-AWS_TRAP(aws_tls_clean_up_static_state)
+AWS_NOOP(aws_tls_client_ctx_new)
+AWS_NOOP(aws_tls_server_ctx_new)
+AWS_NOOP(aws_tls_init_static_state)
+AWS_NOOP(aws_tls_clean_up_static_state)
22
AWS_NOOP(aws_mqtt_library_init)
23
AWS_NOOP(aws_mqtt_library_clean_up)
24
0 commit comments