Skip to content

Commit

Permalink
Add guard for impl in created header (fix #14)
Browse files Browse the repository at this point in the history
  • Loading branch information
funbiscuit committed Nov 3, 2022
1 parent 73dacfa commit 7e519b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/build-shl.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@
{api}
#ifdef EMBEDDED_CLI_IMPL
#ifndef EMBEDDED_CLI_IMPL_GUARD
#define EMBEDDED_CLI_IMPL_GUARD
#ifdef __cplusplus
extern "C" {{
#endif
{impl}
#ifdef __cplusplus
}}
#endif
#endif // EMBEDDED_CLI_IMPL_GUARD
#endif // EMBEDDED_CLI_IMPL
"""

Expand Down

0 comments on commit 7e519b7

Please sign in to comment.