Skip to content

Commit cb0769a

Browse files
author
Aidan Lee
committed
Add handle for adapter callables
1 parent 1356d56 commit cb0769a

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

include/hx/Functions.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ namespace hx
130130
return wrapped(args...);
131131
}
132132

133+
void* __GetHandle() const override
134+
{
135+
return wrapped.GetPtr();
136+
}
137+
133138
inline void __Mark(hx::MarkContext* __inCtx) override
134139
{
135140
HX_MARK_MEMBER(wrapped);
@@ -165,6 +170,11 @@ namespace hx
165170
return null();
166171
}
167172

173+
void* __GetHandle() const override
174+
{
175+
return wrapped.GetPtr();
176+
}
177+
168178
inline void __Mark(hx::MarkContext* __inCtx) override
169179
{
170180
HX_MARK_MEMBER(wrapped);
@@ -206,6 +216,11 @@ namespace hx
206216
return wrapped(args...);
207217
}
208218

219+
void* __GetHandle() const override
220+
{
221+
return wrapped.GetPtr();
222+
}
223+
209224
inline void __Mark(hx::MarkContext* __inCtx) override
210225
{
211226
HX_MARK_MEMBER(wrapped);
@@ -295,6 +310,11 @@ namespace hx
295310
wrapped(args...);
296311
}
297312

313+
void* __GetHandle() const override
314+
{
315+
return wrapped.GetPtr();
316+
}
317+
298318
inline void __Mark(hx::MarkContext* __inCtx) override
299319
{
300320
HX_MARK_MEMBER(wrapped);
@@ -336,6 +356,11 @@ namespace hx
336356
wrapped(args...);
337357
}
338358

359+
void* __GetHandle() const override
360+
{
361+
return wrapped.GetPtr();
362+
}
363+
339364
inline void __Mark(hx::MarkContext* __inCtx) override
340365
{
341366
HX_MARK_MEMBER(wrapped);

0 commit comments

Comments
 (0)