Skip to content

Instantly share code, notes, and snippets.

@sanbrother
Created October 25, 2018 14:03
Show Gist options
  • Save sanbrother/01714131cc477f7563873142b51bcea2 to your computer and use it in GitHub Desktop.
Save sanbrother/01714131cc477f7563873142b51bcea2 to your computer and use it in GitHub Desktop.
C & C++
#ifdef __cplusplus
# define BEGIN_C_DECLS extern "C" {
# define END_C_DECLS }
#else /* !__cplusplus */
# define BEGIN_C_DECLS
# define END_C_DECLS
#endif /* __cplusplus */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment