diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-09-28 08:32:04 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-09-28 08:32:04 (GMT) |
commit | 310eac0d4cb3f8936efaf2d371c40f2501767026 (patch) | |
tree | af5e778c8477ad842050ec8f8735ebf0e23b6a57 /generic/tclOO.h | |
parent | 2b8e3fffb5153cb9fb7c567988338ad6cd163f72 (diff) | |
parent | a0be13178d26ced495715bbc7055f853d2014b4e (diff) | |
download | tcl-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.h | 14 |
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 |