From 1e6d5ac2ca3de1452ccff2ba529442697c321369 Mon Sep 17 00:00:00 2001 From: ohxianzhi Date: Wed, 9 Oct 2024 18:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=AE=89=E5=85=A8=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ohxianzhi --- services/source/bootstrap_service.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/services/source/bootstrap_service.h b/services/source/bootstrap_service.h index 0f0e722..5c6ad80 100644 --- a/services/source/bootstrap_service.h +++ b/services/source/bootstrap_service.h @@ -65,9 +65,16 @@ extern "C" { (initCall); \ }) -#define INIT_APP_CALL(name) APP_CALL(name, 0); +#define INIT_APP_CALL(name) \ + do { \ + APP_CALL(name, 0); \ + } while (0) + +#define INIT_TEST_CALL() \ + do { \ + MODULE_CALL(test, 0); \ + } while (0) -#define INIT_TEST_CALL() MODULE_CALL(test, 0); #elif (defined(__ICCARM__)) #define APP_BEGIN(name, step) __section_begin(APP_NAME(name, step)) #define APP_END(name, step) __section_end(APP_NAME(name, step)) -- Gitee