MCPcopy Create free account
hub / github.com/HexHive/NASS / calling_function

Function calling_function

tools/gef.py:359–365  ·  view source on GitHub ↗

Return the name of the calling function

()

Source from the content-addressed store, hash-verified

357
358
359def calling_function() -> Optional[str]:
360 """Return the name of the calling function"""
361 try:
362 stack_info = traceback.extract_stack()[-3]
363 return stack_info.name
364 except:
365 return None
366
367
368#

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected