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 | 18e1a5be9879592a28ad1697dc57b72c747b5acd (patch) | |
tree | af5e778c8477ad842050ec8f8735ebf0e23b6a57 /generic/tclOO.h | |
parent | 876bcdb150225305548e3ea78322a503ca252df6 (diff) | |
parent | 1dbdfa2351b5709da6aab31d371802dd4af08812 (diff) | |
download | tcl-18e1a5be9879592a28ad1697dc57b72c747b5acd.zip tcl-18e1a5be9879592a28ad1697dc57b72c747b5acd.tar.gz tcl-18e1a5be9879592a28ad1697dc57b72c747b5acd.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 |