CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Function Name

  1. #1
    Join Date
    Jan 2002
    Location
    India
    Posts
    1

    Function Name

    Hi, can anybody tell me how to determine the function name at runtime in C/C++. As per my knowledge there is no standard call to find that. But, i suppose there must be some way to find the function name.
    Thanx,
    vijay


  2. #2
    Join Date
    Oct 2000
    Location
    London, England
    Posts
    4,773

    Re: Function Name

    it is stored in debugging information so that debuggers can use it, but it is not available in release versions.

    You can, of course, get all your functions to set a string. You might wish to do this, for example, to create a call stack which you can display to the user if an exception is thrown.

    This is useful for debugging on systems that don't offer a simple-to-use debugger, eg UNIX.



  3. #3
    Join Date
    Oct 2001
    Location
    Reading, England
    Posts
    98

    Re: Function Name

    No simple to use debugger on UNIX? Debuggers don't come much better than good old text based GDB

    Oliver


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured