Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29283 Discussions

To get the name of the current function

Yaqi_Wang
Beginner
623 Views
How can I get the name of the current function? Is there something similar as __func__?
0 Kudos
3 Replies
anthonyrichards
New Contributor III
623 Views
Define what you mean by 'current'; define what you mean by 'function'.
Then things chould be clearer to us.
0 Kudos
Yaqi_Wang
Beginner
623 Views
ok, let me be more specific:

-------------------------------------
program main

call sub1()

stop

end program main

subroutine sub1()

print *, 'My name is sub1.'
! here can we get the sub1 through preprocessing but not type it manually?

end subroutine sub1
0 Kudos
Steven_L_Intel1
Employee
623 Views
The compiler does not offer what you are looking for.
0 Kudos
Reply