Skip to content

Commit b456446

Browse files
committed
Add noop
1 parent bee3f7e commit b456446

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

contrib/aws-cmake/aws_stubs.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,15 @@
44

55
extern "C" {
66

7-
#define AWS_TRAP(sym) \
8-
__attribute__((weak)) void sym() { \
9-
std::fprintf(stderr, "TRAPPED: " #sym " called\n"); \
10-
std::abort(); \
11-
}
12-
137
#define AWS_NOOP(sym) \
148
__attribute__((weak)) void sym() { \
159
/* No operation */ \
1610
}
1711

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)
12+
AWS_NOOP(aws_tls_client_ctx_new)
13+
AWS_NOOP(aws_tls_server_ctx_new)
14+
AWS_NOOP(aws_tls_init_static_state)
15+
AWS_NOOP(aws_tls_clean_up_static_state)
2216
AWS_NOOP(aws_mqtt_library_init)
2317
AWS_NOOP(aws_mqtt_library_clean_up)
2418

0 commit comments

Comments
 (0)