/[escript]/branches/arrexp_2137_win_merge/escript/src/DataConstant.cpp
ViewVC logotype

Diff of /branches/arrexp_2137_win_merge/escript/src/DataConstant.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2220 by jfenwick, Wed Jan 14 04:31:34 2009 UTC revision 2221 by jfenwick, Mon Jan 19 06:11:25 2009 UTC
# Line 29  Line 29 
29  #include <boost/python/extract.hpp>  #include <boost/python/extract.hpp>
30  #include "DataMaths.h"  #include "DataMaths.h"
31    
32  #define CHECK_FOR_EX_WRITE if (!checkNoSharing()) {throw DataException("Attempt to modify shared object");}  // #define CHECK_FOR_EX_WRITE if (!checkNoSharing()) {throw DataException("Attempt to modify shared object");}
33    
34  // #define CHECK_FOR_EX_WRITE if (!checkNoSharing()) {std::ostringstream ss; ss << " Attempt to modify shared object. line " << __LINE__ << " of " << __FILE__; throw DataException(ss.str());}  #define CHECK_FOR_EX_WRITE if (!checkNoSharing()) {std::ostringstream ss; ss << " Attempt to modify shared object. line " << __LINE__ << " of " << __FILE__; ss << m_owners.size(); cerr << ss << endl; /* *((int*)0)=17;*/throw DataException(ss.str());}
35    
36  using namespace std;  using namespace std;
37  using namespace boost::python;  using namespace boost::python;

Legend:
Removed from v.2220  
changed lines
  Added in v.2221

  ViewVC Help
Powered by ViewVC 1.1.26