We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ddfe48 commit fd08a11Copy full SHA for fd08a11
rev/rev.cpp
@@ -1,3 +1,14 @@
1
#include <semiwrap_init.rev._rev.hpp>
2
3
-SEMIWRAP_PYBIND11_MODULE(m) { initWrapper(m); }
+// rev doesn't expose the internal API, but you need to call these
4
+// to initialize the library otherwise it crashes
5
+extern "C" {
6
+void *getRevLibWpiDriver(void);
7
+void setREVLibDriver(void *newDriver);
8
+}
9
+
10
+SEMIWRAP_PYBIND11_MODULE(m) {
11
+ setREVLibDriver(getRevLibWpiDriver());
12
13
+ initWrapper(m);
14
0 commit comments