summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOnkar Palkar <onkar.palkar@wipro.com>2016-06-30 12:44:51 +0530
committerChristoph Lipka <clipka@jp.adit-jv.com>2016-10-24 13:39:56 +0900
commitcce8103616694d46d53df581e1378dd13e25b347 (patch)
treeaa761b47800c27d3e1001adec1031b7c3d47f1fb
parent438e9c2f1928928d37902d5e274e0e392fde951e (diff)
downloadDLT-daemon-cce8103616694d46d53df581e1378dd13e25b347.tar.gz
Provision to test static function
-rw-r--r--include/dlt/dlt_common.h9
1 files changed, 9 insertions, 0 deletions
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.
*/