Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions orc-rt/include/orc-rt/Session.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include "orc-rt/ResourceManager.h"
#include "orc-rt/move_only_function.h"

#include "orc-rt-c/CoreTypes.h"

#include <vector>

namespace orc_rt {
Expand Down Expand Up @@ -69,6 +71,14 @@ class Session {
std::vector<std::unique_ptr<ResourceManager>> ResourceMgrs;
};

inline orc_rt_SessionRef wrap(Session *S) noexcept {
return reinterpret_cast<orc_rt_SessionRef>(S);
}

inline Session *unwrap(orc_rt_SessionRef S) noexcept {
return reinterpret_cast<Session *>(S);
}

} // namespace orc_rt

#endif // ORC_RT_SESSION_H
Loading