aboutsummaryrefslogtreecommitdiff
path: root/jim-subcmd.h
diff options
context:
space:
mode:
authorAlexander Shpilkin <ashpilkin@gmail.com>2011-08-29 15:47:42 +1000
committerSteve Bennett <steveb@workware.net.au>2011-08-30 12:28:20 +1000
commita213c750258a7d2a362d39aae6b8654723c58ea9 (patch)
tree04b63095ceb93a1b903105d11990297a6b9d880a /jim-subcmd.h
parentb5d191e9f8e01b840ab46eaced3c2f08534b3f63 (diff)
downloadjimtcl-a213c750258a7d2a362d39aae6b8654723c58ea9.zip
jimtcl-a213c750258a7d2a362d39aae6b8654723c58ea9.tar.gz
jimtcl-a213c750258a7d2a362d39aae6b8654723c58ea9.tar.bz2
Allow jim-subcmd.h to be used from C++
Diffstat (limited to 'jim-subcmd.h')
-rw-r--r--jim-subcmd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/jim-subcmd.h b/jim-subcmd.h
index b06a670..b834698 100644
--- a/jim-subcmd.h
+++ b/jim-subcmd.h
@@ -6,6 +6,11 @@
#include <jim.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define JIM_MODFLAG_HIDDEN 0x0001 /* Don't show the subcommand in usage or commands */
#define JIM_MODFLAG_FULLARGV 0x0002 /* Subcmd proc gets called with full argv */
@@ -80,4 +85,8 @@ int Jim_CallSubCmd(Jim_Interp *interp, const jim_subcmd_type *ct, int argc, Jim_
int
Jim_CheckCmdUsage(Jim_Interp *interp, const jim_subcmd_type *command_table, int argc, Jim_Obj *const *argv);
+#ifdef __cplusplus
+}
+#endif
+
#endif