__FILE__ and __LINE__

Discussion in 'C++' started by Neo, Dec 27, 2006.

  1. Neo

    Neo New Member

    Joined:
    Dec 27, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hie,
    Can I put __FILE__ and __LINE__ macros inside the class function which
    may not be inline. And
    Code:
    void function() 
    { 
     classobject::LogInfo(...); 
    
    
    
    } 
    Internally LogInfo should log file name and line number. Here I dont want user to pass those macros and also dont want to use any macros. Is there any solution?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice