Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
def
dynamic_cast(val):
9
assert val.type.code == gdb.TYPE_CODE_REF
10
val = val.cast(val.dynamic_type)
11
return
val
12
13
14
def
eval_on_val(val, eval_str):
Callers
nothing calls this directly
Calls
1
cast
Method · 0.45
Tested by
no test coverage detected