This commit is contained in:
Roland Conybeare 2024-09-15 11:17:53 -05:00
commit 9aeaaf1c33

View file

@ -17,6 +17,7 @@ namespace xo {
using xo::ast::llvmintrinsic;
using xo::pyutil::pycaller_base;
using xo::pyutil::pycaller;
using xo::reflect::Reflect;
using xo::ref::rp;
//using xo::ref::Refcount;
using xo::ref::unowned_ptr;
@ -54,6 +55,11 @@ namespace xo {
{
using caller_type = pycaller<Retval, Args...>;
/* we want native function type reflected;
* need this so we can declare function-valued variables
*/
Reflect::require<typename caller_type::function_type>();
caller_type::declare_once(m, pycaller_id_str);
/* factory function takes function pointer of type