Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Sep 26, 2024
1 parent 81b13dc commit 5b3fb18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

sys.path.insert(0, os.path.abspath('.'))

version = '2.1.5'
version = '2.2.0'
release = version

# General information about the project.
Expand Down
8 changes: 7 additions & 1 deletion hikyuu_pywrap/trade_sys/_Selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ class PySelectorBase : public SelectorBase {
}
};

#ifdef __GNUC__
#pragma GCC visibility push(hidden)
#endif
class PyOptimalSelector : public OptimalSelectorBase {
OPTIMAL_SELECTOR_NO_PRIVATE_MEMBER_SERIALIZATION

Expand Down Expand Up @@ -83,8 +86,11 @@ class PyOptimalSelector : public OptimalSelectorBase {
// 目前无法序列化
py::function m_evaluate;
};
#ifdef __GNUC__
#pragma GCC visibility pop
#endif

SEPtr crtSEOptimal(const py::function&& evalfunc) {
SEPtr crtSEOptimal(const py::function& evalfunc) {
return std::make_shared<PyOptimalSelector>(evalfunc);
}

Expand Down

0 comments on commit 5b3fb18

Please sign in to comment.