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

Function dynamic_cast

scripts/gdb/pretty_printers.py:8–11  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

6
7
8def dynamic_cast(val):
9 assert val.type.code == gdb.TYPE_CODE_REF
10 val = val.cast(val.dynamic_type)
11 return val
12
13
14def eval_on_val(val, eval_str):

Callers

nothing calls this directly

Calls 1

castMethod · 0.45

Tested by

no test coverage detected