Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit a58a73a

Browse files
committed
dynamically add commands & signals
1 parent 35f3a25 commit a58a73a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/dynamic-graph/python/module.hh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ inline auto exposeEntity() {
7070
*/
7171
bp::def(T::CLASS_NAME.c_str(), &internal::makeEntity1<T, Options>);
7272
bp::def(T::CLASS_NAME.c_str(), &internal::makeEntity2<T, Options>);
73+
if (!(Options & AddCommands)) obj.def("add_commands", &entity::addCommands);
74+
if (!(Options & AddSignals)) obj.def("add_signals", &entity::addSignals);
7375
return obj;
7476
}
7577

0 commit comments

Comments
 (0)