xo-pyjit: + reflect fyunction type so can declare vars w/ that type
This commit is contained in:
parent
aae67dd794
commit
6f4f06f1b1
1 changed files with 6 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ namespace xo {
|
||||||
using xo::ast::llvmintrinsic;
|
using xo::ast::llvmintrinsic;
|
||||||
using xo::pyutil::pycaller_base;
|
using xo::pyutil::pycaller_base;
|
||||||
using xo::pyutil::pycaller;
|
using xo::pyutil::pycaller;
|
||||||
|
using xo::reflect::Reflect;
|
||||||
using xo::ref::rp;
|
using xo::ref::rp;
|
||||||
//using xo::ref::Refcount;
|
//using xo::ref::Refcount;
|
||||||
using xo::ref::unowned_ptr;
|
using xo::ref::unowned_ptr;
|
||||||
|
|
@ -54,6 +55,11 @@ namespace xo {
|
||||||
{
|
{
|
||||||
using caller_type = pycaller<Retval, Args...>;
|
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);
|
caller_type::declare_once(m, pycaller_id_str);
|
||||||
|
|
||||||
/* factory function takes function pointer of type
|
/* factory function takes function pointer of type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue