summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 750f954)
raw | patch | inline | side by side (parent: 750f954)
author | Mahesh Radhakrishnan <m-radhakrishnan2@ti.com> | |
Thu, 7 Nov 2019 21:37:47 +0000 (16:37 -0500) | ||
committer | Mahesh Radhakrishnan <m-radhakrishnan2@ti.com> | |
Thu, 7 Nov 2019 21:37:47 +0000 (16:37 -0500) |
packages/ti/utils/profiling/src/profilingHooksR5.c | patch | blob | history |
diff --git a/packages/ti/utils/profiling/src/profilingHooksR5.c b/packages/ti/utils/profiling/src/profilingHooksR5.c
index 6defed375ff387e9316b92d844b6efaf5b2f77c6..55e8c52bf51440d4f54e4661160cabd3e811ac29 100644 (file)
* used by the instrumentation functions themselves. This is recorded and
* passed into post-processing for a more accurate result.
*/
-#pragma FUNC_CANNOT_INLINE(empty_fn);
void empty_fn(void); /*for misra warnings*/
+#ifdef __cplusplus
+#pragma FUNC_CANNOT_INLINE
+#else
+#pragma FUNC_CANNOT_INLINE(empty_fn);
+#endif
void empty_fn(void){
}
}
}
-#pragma NO_HOOKS (TaskRegisterId)
void TaskRegisterId(int32_t hookSetId); /*for misra warnings*/
+#ifdef __cplusplus
+#pragma NO_HOOKS
+#else
+#pragma NO_HOOKS(TaskRegisterId);
+#endif
void TaskRegisterId(int32_t hookSetId)
{
CurrentTaskHookSetId = hookSetId;
/* ======== mySwitch ========
* invoked whenever a Task switch occurs/is made ready to run */
-#pragma NO_HOOKS (mySwitch)
void mySwitch(const void* prev, const void* next); /*for misra warnings*/
+#ifdef __cplusplus
+#pragma NO_HOOKS
+#else
+#pragma NO_HOOKS(mySwitch);
+#endif
void mySwitch(const void* prev, const void* next)
{
if (log_idx < MAX_LOG){