From 43ed83b1927129b9b6c13015656f5dc035af3738 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 21 Jan 2016 22:13:10 +0100 Subject: [PATCH] drop use of exit in rum_loop.c --- src/btstack_run_loop.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/btstack_run_loop.c b/src/btstack_run_loop.c index 0eeb0955a..4a8bf65d8 100644 --- a/src/btstack_run_loop.c +++ b/src/btstack_run_loop.c @@ -58,11 +58,7 @@ extern const btstack_run_loop_t btstack_run_loop_embedded; static void btstack_run_loop_assert(void){ if (!the_run_loop){ log_error("ERROR: run_loop function called before btstack_run_loop_init!"); -#ifdef EMBEDDED - exit(10); -#else while(1); -#endif } } @@ -148,11 +144,7 @@ void btstack_run_loop_execute(void){ void btstack_run_loop_init(const btstack_run_loop_t * run_loop){ if (the_run_loop){ log_error("ERROR: run loop initialized twice!"); -#ifdef EMBEDDED while(1); -#else - exit(10); -#endif } the_run_loop = run_loop; the_run_loop->init();