diff options
author | aont <220471+aont@users.noreply.github.com> | 2025-06-04 14:25:57 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-04 14:25:57 +0900 |
commit | fc07e125eb590310d1687133da4a61f1f6cdd1cc (patch) | |
tree | a527e906ebe8f25f39d97eafc9255974a4d161aa /cdl.h | |
parent | 09e02bad33d25d78cd18a114a6191112f87e9fd8 (diff) | |
download | cdl86-fc07e125eb590310d1687133da4a61f1f6cdd1cc.tar.gz cdl86-fc07e125eb590310d1687133da4a61f1f6cdd1cc.zip |
extern "C"
Diffstat (limited to 'cdl.h')
-rw-r--r-- | cdl.h | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -113,6 +113,13 @@ /* General : reserve bytes */
#define BYTES_RESERVE_MAX 20
+/* extern "C" */
+#ifdef __cplusplus
+#define EXTERN_C extern "C"
+#else
+#define EXTERN_C
+#endif
+
/**
* Intruction probe struct
*
@@ -196,7 +203,7 @@ struct cdl_swbp_patch cdl_swbp_attach( *
* @param jmp_patch pointer to cdl_jmp_patch struct.
*/
-void cdl_jmp_detach(
+EXTERN_C void cdl_jmp_detach(
__in_out struct cdl_jmp_patch* jmp_patch
);
@@ -205,7 +212,7 @@ void cdl_jmp_detach( *
* @param swbp_patch pointer to cdl_swbp_patch struct.
*/
-void cdl_swbp_detach(
+EXTERN_C void cdl_swbp_detach(
__in_out struct cdl_swbp_patch* swbp_patch
);
@@ -214,7 +221,7 @@ void cdl_swbp_detach( *
* @param jmp_patch pointer to cdl_jmp_patch struct.
*/
-void cdl_jmp_dbg(
+EXTERN_C void cdl_jmp_dbg(
__in struct cdl_jmp_patch* jmp_patch
);
@@ -223,7 +230,7 @@ void cdl_jmp_dbg( *
* @param jmp_patch pointer to cdl_swbp_patch struct.
*/
-void cdl_swbp_dbg(
+EXTERN_C void cdl_swbp_dbg(
__in struct cdl_swbp_patch* swbp_patch
);
|