How To Get the Name of the Current Procedure/Function in Delphi (As a String)

后端 未结 6 1301
误落风尘
误落风尘 2020-12-29 03:47

Is it possible to obtain the name of the current procedure/function as a string, within a procedure/function? I suppose there would be some \"macro\" that is expanded at com

6条回答
  •  粉色の甜心
    2020-12-29 04:34

    No compile time macro, but if you include enough debug information you can use the callstack to find it out. See this same question.

提交回复
热议问题