summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_user_macros.h
diff options
context:
space:
mode:
authorLassi Marttala <Lassi.LM.Marttala@partner.bmw.de>2012-07-18 11:27:50 +0200
committerChristian Muck <christian.muck@bmw.de>2012-09-27 09:02:33 +0200
commit76409ba6a98960ec910d93d159c820f25041eea8 (patch)
tree41a1e46663689cb463f80954d5f510336448caf0 /include/dlt/dlt_user_macros.h
parente79829e9a65b0d1c7b371578278fef3f9e31fb54 (diff)
downloadDLT-daemon-76409ba6a98960ec910d93d159c820f25041eea8.tar.gz
[GDLT-115]: Prevent return value from DLT_REGISTER_APP
Diffstat (limited to 'include/dlt/dlt_user_macros.h')
-rw-r--r--[-rwxr-xr-x]include/dlt/dlt_user_macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dlt/dlt_user_macros.h b/include/dlt/dlt_user_macros.h
index 1f95f3c..ab17108 100755..100644
--- a/include/dlt/dlt_user_macros.h
+++ b/include/dlt/dlt_user_macros.h
@@ -99,9 +99,9 @@ extern DltContext CONTEXT;
* @param APPID application id with maximal four characters
* @param DESCRIPTION ASCII string containing description
*/
-#define DLT_REGISTER_APP(APPID,DESCRIPTION) \
+#define DLT_REGISTER_APP(APPID,DESCRIPTION) do {\
dlt_check_library_version(_DLT_PACKAGE_MAJOR_VERSION, _DLT_PACKAGE_MINOR_VERSION ); \
- dlt_register_app( APPID, DESCRIPTION);
+ dlt_register_app( APPID, DESCRIPTION);} while(0)
/**