MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / dynamic_cast

Function dynamic_cast

scripts/gdb/commands.py:18–21  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

16
17
18def dynamic_cast(val):
19 assert val.type.code == gdb.TYPE_CODE_REF
20 val = val.cast(val.dynamic_type)
21 return val
22
23
24def eval_on_val(val, eval_str):

Callers 1

print_mge_frameFunction · 0.70

Calls 1

castMethod · 0.45

Tested by

no test coverage detected