From 35fc751673087f4893bb6c4ed4e52be02fe16e56 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 5 May 2024 13:07:39 +0800 Subject: [PATCH] Update vm.h --- include/pocketpy/vm.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/pocketpy/vm.h b/include/pocketpy/vm.h index a25ea4cb..603f1c09 100644 --- a/include/pocketpy/vm.h +++ b/include/pocketpy/vm.h @@ -208,8 +208,6 @@ public: #endif #if PK_REGION("Utility Methods") - PyObject* new_module(Str name, Str package=""); - PyObject* new_type_object(PyObject* mod, StrName name, Type base, bool subclass_enabled=true); ArgsView cast_array_view(PyObject* obj); void set_main_argv(int argc, char** argv); i64 normalized_index(i64 index, int size); @@ -366,6 +364,9 @@ public: #endif #if PK_REGION("User Type Registration") + PyObject* new_module(Str name, Str package=""); + PyObject* new_type_object(PyObject* mod, StrName name, Type base, bool subclass_enabled=true); + template Type _tp_user(){ return _find_type_in_cxx_typeid_map(); } template