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 5465979 commit ce32b73Copy full SHA for ce32b73
orc-rt/include/orc-rt/Session.h
@@ -17,6 +17,8 @@
17
#include "orc-rt/ResourceManager.h"
18
#include "orc-rt/move_only_function.h"
19
20
+#include "orc-rt-c/CoreTypes.h"
21
+
22
#include <vector>
23
24
namespace orc_rt {
@@ -69,6 +71,14 @@ class Session {
69
71
std::vector<std::unique_ptr<ResourceManager>> ResourceMgrs;
70
72
};
73
74
+inline orc_rt_SessionRef wrap(Session *S) noexcept {
75
+ return reinterpret_cast<orc_rt_SessionRef>(S);
76
+}
77
78
+inline Session *unwrap(orc_rt_SessionRef S) noexcept {
79
+ return reinterpret_cast<Session *>(S);
80
81
82
} // namespace orc_rt
83
84
#endif // ORC_RT_SESSION_H
0 commit comments