Skip to content

Commit a45ba96

Browse files
committed
Add some consts
1 parent d74e89a commit a45ba96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

BehaviorTree/src/behavior_tree.cc

+5
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ void InitModule(const char *module_name) {
160160
Py_INCREF(&RootType);
161161
PyModule_AddObject(module, "Root", (PyObject *)&RootType);
162162

163+
PyModule_AddObject(module, "SUCCESS", PyInt_FromLong(SUCCESS));
164+
PyModule_AddObject(module, "FAILURE", PyInt_FromLong(FAILURE));
165+
PyModule_AddObject(module, "RUNNING", PyInt_FromLong(RUNNING));
166+
PyModule_AddObject(module, "ERROR", PyInt_FromLong(ERROR));
167+
163168
// tick functions index
164169
PyObject *index = PyDict_New();
165170
const char *keys[] = {

0 commit comments

Comments
 (0)