hikyuu2/hikyuu_pywrap/_util.cpp
fasiondog bc3a875a2c 1. Fix: VS2017 can't use Boost.python's docstring
2. Support C++17
3. Clear "tes_data/tmp"
2018-08-26 18:47:06 +08:00

25 lines
495 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() {
def("roundUp", roundUp, roundUp_overload());
def("roundDown", roundDown, roundDown_overload());
}