Skip to content

Commit 15fcc0a

Browse files
committed
Add header guard and mark the function extern "C".
This function may be called from the C++ land, so mark it extern "C". Change-Id: Ic9611e78c997fb8f2a1d085982f431107f3c44e2
1 parent 9fb13bc commit 15fcc0a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

profile-func/trace_logger_aladdin.h

+14-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
void llvmtracer_set_trace_name(char *trace_name);
1+
#ifndef __LLVM_TRACER_TRACE_LOGGER_ALADDIN_H__
2+
#define __LLVM_TRACER_TRACE_LOGGER_ALADDIN_H__
3+
4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
7+
8+
void llvmtracer_set_trace_name(const char *trace_name);
9+
10+
#ifdef __cplusplus
11+
} // extern "C"
12+
#endif
13+
14+
#endif

0 commit comments

Comments
 (0)