From cce8103616694d46d53df581e1378dd13e25b347 Mon Sep 17 00:00:00 2001 From: Onkar Palkar Date: Thu, 30 Jun 2016 12:44:51 +0530 Subject: Provision to test static function --- include/dlt/dlt_common.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index ba2324e..550cc10 100644 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -335,6 +335,15 @@ enum { * Maximal length of an entry */ #define DLT_ENTRY_MAX 100 + +/** + * Provision to test static function + */ +#ifndef DLT_UNIT_TESTS +#define STATIC static +#else +#define STATIC +#endif /** * The definition of the serial header containing the characters "DLS" + 0x01. */ -- cgit v1.2.1