summaryrefslogtreecommitdiffstats
path: root/generic/tclOO.h
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2013-10-02 10:01:50 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2013-10-02 10:01:50 (GMT)
commit0bb601dd7253b545f4f9723a05bdd71c23421c77 (patch)
treed99f34433ee1649a60fd63943810d88ff7ebabaf /generic/tclOO.h
parent6671b7930273fc4c18dedbe929e2f3d67e1dedf0 (diff)
downloadtcl-0bb601dd7253b545f4f9723a05bdd71c23421c77.zip
tcl-0bb601dd7253b545f4f9723a05bdd71c23421c77.tar.gz
tcl-0bb601dd7253b545f4f9723a05bdd71c23421c77.tar.bz2
Turn Tcl_OOInitStubs into a no-op in non-stub-enabled usage.
Diffstat (limited to 'generic/tclOO.h')
-rw-r--r--generic/tclOO.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tclOO.h b/generic/tclOO.h
index 4a6cda7..e5ed10d 100644
--- a/generic/tclOO.h
+++ b/generic/tclOO.h
@@ -37,10 +37,14 @@
extern "C" {
#endif
+#ifdef USE_TCLOO_STUBS
extern const char *TclOOInitializeStubs(
Tcl_Interp *, const char *version);
#define Tcl_OOInitStubs(interp) \
TclOOInitializeStubs((interp), TCLOO_VERSION)
+#else
+#define Tcl_OOInitStubs(interp) (TCL_OK)
+#endif
/*
* These are opaque types.