]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/defaults.h
build, vtysh: extract vtysh commands from .xref
[mirror_frr.git] / lib / defaults.h
index 7cdd18120e73ccfa456ee6c917f3a4e2567f9f4d..55250f0f81ac2b69e0e011d332d1c23d3ddfd85c 100644 (file)
 
 #include "compiler.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* frr_default wraps information about a default that has different
  * values depending on FRR version or default-set
  *
@@ -94,7 +98,8 @@ struct frr_default {
        static void _dfltinit_##varname(void)                                  \
        {                                                                      \
                frr_default_add(&_dflt_##varname);                             \
-       }
+       }                                                                      \
+       MACRO_REQUIRE_SEMICOLON() /* end */
 
 /* use:
  *   FRR_CFG_DEFAULT_LONG(SHARP_BLUNTNESS,
@@ -135,4 +140,8 @@ extern bool frr_defaults_profile_valid(const char *profile);
 /* like strcmp(), but with version ordering */
 extern int frr_version_cmp(const char *aa, const char *bb);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _FRR_DEFAULTS_H */