Skip to content

Commit

Permalink
Update canfigger.h for C++ compatibility
Browse files Browse the repository at this point in the history
Added guarded export to ensure compatibility with C++
KaruroChori authored Jan 6, 2025
1 parent 93ed789 commit 203596e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions canfigger.h
Original file line number Diff line number Diff line change
@@ -37,6 +37,10 @@ SOFTWARE.

#pragma once

#ifdef __cplusplus
extern "C" {
#endif

/**
* \example example.c
*/
@@ -96,3 +100,7 @@ void canfigger_free_current_key_node_advance(struct Canfigger **list);
* @param attr Current attribute that will get reassigned after the function call.
*/
void canfigger_free_current_attr_str_advance(struct attributes *attributes, char **attr);

#ifdef __cplusplus
}
#endif

0 comments on commit 203596e

Please sign in to comment.