We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ccc123 commit cc2aeb4Copy full SHA for cc2aeb4
mypyc/primitives/weakref_ops.py
@@ -1,17 +1,19 @@
1
from mypyc.ir.ops import ERR_MAGIC
2
from mypyc.ir.rtypes import object_rprimitive
3
-from mypyc.primitives.registry import custom_op
+from mypyc.primitives.registry import function_op
4
5
# Weakref operations
6
7
-new_ref_op = custom_op(
+new_ref_op = function_op(
8
+ name="weakref.ReferenceType",
9
arg_types=[object_rprimitive, object_rprimitive],
10
return_type=object_rprimitive,
11
c_function_name="PyWeakref_NewRef",
12
error_kind=ERR_MAGIC,
13
)
14
-new_proxy_op = custom_op(
15
+new_proxy_op = function_op(
16
+ name="weakref.proxy",
17
18
19
c_function_name="PyWeakref_NewProxy",
0 commit comments