Skip to content

Commit

Permalink
Add header guard and mark the function extern "C".
Browse files Browse the repository at this point in the history
This function may be called from the C++ land, so mark it extern "C".

Change-Id: Ic9611e78c997fb8f2a1d085982f431107f3c44e2
  • Loading branch information
yaoyuannnn committed Oct 11, 2019
1 parent 9fb13bc commit 15fcc0a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion profile-func/trace_logger_aladdin.h
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
void llvmtracer_set_trace_name(char *trace_name);
#ifndef __LLVM_TRACER_TRACE_LOGGER_ALADDIN_H__
#define __LLVM_TRACER_TRACE_LOGGER_ALADDIN_H__

#ifdef __cplusplus
extern "C" {
#endif

void llvmtracer_set_trace_name(const char *trace_name);

#ifdef __cplusplus
} // extern "C"
#endif

#endif

0 comments on commit 15fcc0a

Please sign in to comment.