CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Deploying Windows Server 2008 with System Center
  • Remote Desktop Protocol Performance Improvements in Windows Server 2008 R2 and Windows 7
  • The Microsoft Dynamics CRM Security Model
  • SQL Server Modeling Services with Microsoft Visual Studio 2010 Beta 2

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > CodeGuru Technical FAQs > CodeGuru Individual FAQs
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    CodeGuru Individual FAQs The indivdual FAQs for CodeGuru. See the specific Topic FAQ forums for index pages and links to these Frequently Asked/Answered Questions.

    Reply
     
    Thread Tools Search this Thread Display Modes
      #1    
    Old February 13th, 2003, 01:04 PM
    Yves M's Avatar
    Yves M Yves M is offline
    Moderator
    Power Poster
     
    Join Date: Aug 2002
    Location: Madrid
    Posts: 4,560
    Yves M has much to be proud of (1500+) Yves M has much to be proud of (1500+) Yves M has much to be proud of (1500+) Yves M has much to be proud of (1500+) Yves M has much to be proud of (1500+) Yves M has much to be proud of (1500+) Yves M has much to be proud of (1500+) Yves M has much to be proud of (1500+) Yves M has much to be proud of (1500+) Yves M has much to be proud of (1500+) Yves M has much to be proud of (1500+)
    C++ Preprocessor: What are '__FILE__' and '__LINE__'?

    Q: What are '__FILE__' and '__LINE__'?

    A: '__FILE__' and '__LINE__' are predefined macros and part of the C/C++ standard. During preprocessing, they are replaced respectively by a constant string holding the current file name and by a integer representing the current line number.

    There are other preprocessor variables including:
    • '__DATE__' -> a string literal of the form "Mmm dd yyyy"

    • '__TIME__' -> a string literal of the form "hh:mm:ss"

    • '__TIMESTAMP__' -> a string literal of the form "Mmm dd yyyy hh:mm:ss"

    • '__FUNCTION__' -> a string literal which contains the function name (this is part of C99, the new C standard and not all C++ compilers support it)

    FAQ contributed by: [Kevin Hall] [Axter]




    Last edited by Andreas Masur; July 23rd, 2005 at 02:29 PM.
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > CodeGuru Technical FAQs > CodeGuru Individual FAQs


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is On
    Forum Jump


    All times are GMT -5. The time now is 03:16 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.