hikyuu2/libs/hikyuu_python/_util.cpp
2017-09-27 00:49:06 +08:00

26 lines
537 B
C++

/*
* _util.cpp
*
* Created on: 2011-12-4
* Author: fasiondog
*/
#include <boost/python.hpp>
#include <hikyuu/utilities/util.h>
using namespace boost::python;
using namespace hku;
#include <hikyuu/utilities/util.h>
BOOST_PYTHON_FUNCTION_OVERLOADS(roundUp_overload, roundUp, 1, 2);
BOOST_PYTHON_FUNCTION_OVERLOADS(roundDown_overload, roundDown, 1, 2);
void export_util() {
docstring_options doc_options(false);
def("roundUp", roundUp, roundUp_overload());
def("roundDown", roundDown, roundDown_overload());
}