Skip to content

Commit

Permalink
exposed double-precision compile switch in python
Browse files Browse the repository at this point in the history
  • Loading branch information
thunil committed Sep 1, 2014
1 parent 00e5e90 commit 0f7fa00
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/pwrapper/registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,11 @@ void WrapperRegistry::addConstants(PyObject* module) {
#else
PyModule_AddObject(module,"GUI",Manta::toPy<bool>(false));
#endif
#ifdef DOUBLEPRECISION
PyModule_AddObject(module,"DOUBLEPRECISION",Manta::toPy<bool>(true));
#else
PyModule_AddObject(module,"DOUBLEPRECISION",Manta::toPy<bool>(false));
#endif
}

void WrapperRegistry::runPreInit() {
Expand Down Expand Up @@ -648,4 +653,4 @@ Register::Register(InitFunc func) {
WrapperRegistry::instance().addExternalInitializer(func);
}

} // namespace
} // namespace

0 comments on commit 0f7fa00

Please sign in to comment.