First Python support
This commit is contained in:
parent
bc655f1362
commit
ab1a181bb6
3 changed files with 70 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
|||
add_definitions(-fPIC)
|
||||
|
||||
SET(CosmoTool_SRCS
|
||||
fortran.cpp
|
||||
interpolate.cpp
|
||||
|
|
|
@ -39,6 +39,7 @@ knowledge of the CeCILL license and that you accept its terms.
|
|||
#include <string>
|
||||
#include <stdint.h>
|
||||
#include <exception>
|
||||
#include <stdexcept>
|
||||
#include <cstring>
|
||||
|
||||
namespace CosmoTool
|
||||
|
@ -83,13 +84,13 @@ namespace CosmoTool
|
|||
* Base exception class for all exceptions handled by
|
||||
* this library.
|
||||
*/
|
||||
class Exception : public std::exception
|
||||
class Exception : public std::runtime_error
|
||||
{
|
||||
public:
|
||||
Exception(const std::string& mess)
|
||||
: msg(mess), msgok(true) {}
|
||||
: std::runtime_error(mess), msg(mess), msgok(true) {}
|
||||
Exception()
|
||||
: msgok(false) {}
|
||||
: std::runtime_error("No message"), msgok(false) {}
|
||||
|
||||
virtual ~Exception() throw () {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue