Boost logo

Boost-Commit :

From: tschwinger_at_[hidden]
Date: 2007-11-05 12:20:45


Author: t_schwinger
Date: 2007-11-05 12:20:44 EST (Mon, 05 Nov 2007)
New Revision: 40798
URL: http://svn.boost.org/trac/boost/changeset/40798

Log:
- nonstandard calling conventions need to be enabled now
- using #ifdef ... #error to detect whether test makes sense for a particular compiler

Text files modified:
   trunk/libs/function_types/test/custom_ccs/member_ccs.cpp | 6 ++++++
   trunk/libs/function_types/test/custom_ccs/member_ccs_exact.cpp | 6 ++++++
   trunk/libs/function_types/test/custom_ccs/nonmember_ccs.cpp | 6 ++++++
   trunk/libs/function_types/test/custom_ccs/nonmember_ccs_exact.cpp | 6 ++++++
   4 files changed, 24 insertions(+), 0 deletions(-)

Modified: trunk/libs/function_types/test/custom_ccs/member_ccs.cpp
==============================================================================
--- trunk/libs/function_types/test/custom_ccs/member_ccs.cpp (original)
+++ trunk/libs/function_types/test/custom_ccs/member_ccs.cpp 2007-11-05 12:20:44 EST (Mon, 05 Nov 2007)
@@ -6,11 +6,17 @@
 
 //------------------------------------------------------------------------------
 
+#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS
+
 #include <boost/mpl/assert.hpp>
 #include <boost/mpl/vector.hpp>
 #include <boost/function_types/member_function_pointer.hpp>
 #include <boost/function_types/is_callable_builtin.hpp>
 
+#ifndef BOOST_FT_CC_STDCALL
+# error "test not supported with this compiler"
+#endif
+
 namespace ft = boost::function_types;
 namespace mpl = boost::mpl;
 

Modified: trunk/libs/function_types/test/custom_ccs/member_ccs_exact.cpp
==============================================================================
--- trunk/libs/function_types/test/custom_ccs/member_ccs_exact.cpp (original)
+++ trunk/libs/function_types/test/custom_ccs/member_ccs_exact.cpp 2007-11-05 12:20:44 EST (Mon, 05 Nov 2007)
@@ -6,11 +6,17 @@
 
 //------------------------------------------------------------------------------
 
+#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS
+
 #include <boost/mpl/assert.hpp>
 #include <boost/mpl/vector.hpp>
 #include <boost/function_types/member_function_pointer.hpp>
 #include <boost/function_types/is_callable_builtin.hpp>
 
+#ifndef BOOST_FT_CC_STDCALL
+# error "test not supported with this compiler"
+#endif
+
 namespace ft = boost::function_types;
 namespace mpl = boost::mpl;
 

Modified: trunk/libs/function_types/test/custom_ccs/nonmember_ccs.cpp
==============================================================================
--- trunk/libs/function_types/test/custom_ccs/nonmember_ccs.cpp (original)
+++ trunk/libs/function_types/test/custom_ccs/nonmember_ccs.cpp 2007-11-05 12:20:44 EST (Mon, 05 Nov 2007)
@@ -6,6 +6,8 @@
 
 //------------------------------------------------------------------------------
 
+#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS
+
 #include <boost/mpl/assert.hpp>
 #include <boost/mpl/vector.hpp>
 #include <boost/function_types/function_type.hpp>
@@ -13,6 +15,10 @@
 #include <boost/function_types/function_reference.hpp>
 #include <boost/function_types/is_callable_builtin.hpp>
 
+#ifndef BOOST_FT_CC_STDCALL
+# error "test not supported with this compiler"
+#endif
+
 namespace ft = boost::function_types;
 namespace mpl = boost::mpl;
 

Modified: trunk/libs/function_types/test/custom_ccs/nonmember_ccs_exact.cpp
==============================================================================
--- trunk/libs/function_types/test/custom_ccs/nonmember_ccs_exact.cpp (original)
+++ trunk/libs/function_types/test/custom_ccs/nonmember_ccs_exact.cpp 2007-11-05 12:20:44 EST (Mon, 05 Nov 2007)
@@ -6,6 +6,8 @@
 
 //------------------------------------------------------------------------------
 
+#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS
+
 #include <boost/mpl/assert.hpp>
 #include <boost/mpl/vector.hpp>
 #include <boost/function_types/function_type.hpp>
@@ -13,6 +15,10 @@
 #include <boost/function_types/function_reference.hpp>
 #include <boost/function_types/is_callable_builtin.hpp>
 
+#ifndef BOOST_FT_CC_STDCALL
+# error "test not supported with this compiler"
+#endif
+
 namespace ft = boost::function_types;
 namespace mpl = boost::mpl;
 


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