1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

__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