M
M
MrSayMyName2016-10-11 16:53:32
C++ / C#
MrSayMyName, 2016-10-11 16:53:32

How to get function name in function body?

Good day.
In general, the essence of the issue is stated. How to get function name in function body? And can it be used to call the same function (recursion)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
romy4, 2016-10-11
@romy4

__FUNCTION__();

I
iv_k, 2016-10-11
@iv_k

> And can it be used to call the same function (recursion)?
no, but you can just call the same function
foo()
{
foo();
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question