Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50042 - in sandbox/compile-in-place/Boost_1_35_0/boost/python: . detail
From: doomster_at_[hidden]
Date: 2008-11-30 16:42:46


Author: eckhardt
Date: 2008-11-30 16:42:45 EST (Sun, 30 Nov 2008)
New Revision: 50042
URL: http://svn.boost.org/trac/boost/changeset/50042

Log:
- Check the compile in-place macro.

Text files modified:
   sandbox/compile-in-place/Boost_1_35_0/boost/python/compile_in_place.cpp | 5 +++++
   sandbox/compile-in-place/Boost_1_35_0/boost/python/detail/config.hpp | 2 +-
   2 files changed, 6 insertions(+), 1 deletions(-)

Modified: sandbox/compile-in-place/Boost_1_35_0/boost/python/compile_in_place.cpp
==============================================================================
--- sandbox/compile-in-place/Boost_1_35_0/boost/python/compile_in_place.cpp (original)
+++ sandbox/compile-in-place/Boost_1_35_0/boost/python/compile_in_place.cpp 2008-11-30 16:42:45 EST (Sun, 30 Nov 2008)
@@ -7,6 +7,11 @@
 */
 // $Id$
 
+// The code must be set up for in-place compilation
+#if !defined(BOOST_ALL_COMPILE_IN_PLACE) && !defined(BOOST_PYTHON_COMPILE_IN_PLACE)
+# error "this file should only be included when compiling Boost.Python in place"
+#endif
+
 // This file must not be included more than once. Note that this 'once' is
 // not per translation unit but per binary! Never include this in a header!
 #ifdef BOOST_PYTHON_COMPILE_IN_PLACE_CPP_INCLUDED

Modified: sandbox/compile-in-place/Boost_1_35_0/boost/python/detail/config.hpp
==============================================================================
--- sandbox/compile-in-place/Boost_1_35_0/boost/python/detail/config.hpp (original)
+++ sandbox/compile-in-place/Boost_1_35_0/boost/python/detail/config.hpp 2008-11-30 16:42:45 EST (Sun, 30 Nov 2008)
@@ -116,7 +116,7 @@
 
 // enable automatic library variant selection ------------------------------//
 
-#if !defined(BOOST_PYTHON_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_PYTHON_NO_LIB)
+#if !defined(BOOST_PYTHON_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_PYTHON_NO_LIB) && !defined(BOOST_ALL_COMPILE_IN_PLACE) && !defined(BOOST_PYTHON_COMPILE_IN_PLACE)
 //
 // Set the name of our library, this will get undef'ed by auto_link.hpp
 // once it's done with it:


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk