summaryrefslogtreecommitdiffstats
path: root/generic/tclOO.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-09-28 08:32:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-09-28 08:32:04 (GMT)
commit310eac0d4cb3f8936efaf2d371c40f2501767026 (patch)
treeaf5e778c8477ad842050ec8f8735ebf0e23b6a57 /generic/tclOO.h
parent2b8e3fffb5153cb9fb7c567988338ad6cd163f72 (diff)
parenta0be13178d26ced495715bbc7055f853d2014b4e (diff)
downloadtcl-310eac0d4cb3f8936efaf2d371c40f2501767026.zip
tcl-310eac0d4cb3f8936efaf2d371c40f2501767026.tar.gz
tcl-310eac0d4cb3f8936efaf2d371c40f2501767026.tar.bz2
[RFE 3010352]: make all TclOO API functions MODULE_SCOPE
Diffstat (limited to 'generic/tclOO.h')
-rw-r--r--generic/tclOO.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/generic/tclOO.h b/generic/tclOO.h
index c791930..fef2bd0 100644
--- a/generic/tclOO.h
+++ b/generic/tclOO.h
@@ -14,6 +14,20 @@
#define TCLOO_H_INCLUDED
#include "tcl.h"
+#ifndef TCLOOAPI
+# if defined(BUILD_tcl) || defined(BUILD_TclOO)
+# define TCLOOAPI MODULE_SCOPE
+# else
+# define TCLOOAPI extern
+# undef USE_TCLOO_STUBS
+# define USE_TCLOO_STUBS 1
+# endif
+#endif
+
+extern const char *TclOOInitializeStubs(
+ Tcl_Interp *, const char *version);
+#define Tcl_OOInitStubs(interp) TclOOInitializeStubs((interp), TCLOO_VERSION)
+
/*
* Be careful when it comes to versioning; need to make sure that the
* standalone TclOO version matches. Also make sure that this matches the