epoc32/include/pragmamessage.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/pragmamessage.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/pragmamessage.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,32 @@
     1.4 -pragmamessage.h
     1.5 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +// Created at: 20-Dec-99 10:38:03 AM
    1.19 +// Defines a macro for the file line pragma message
    1.20 +// 
    1.21 +//
    1.22 +
    1.23 +
    1.24 +#if !defined __PRAGMAMESSAGE_H__
    1.25 +#define __PRAGMAMESSAGE_H__
    1.26 +
    1.27 +#define _QUOTE(x) # x
    1.28 +#define QUOTE(x) _QUOTE(x)
    1.29 +
    1.30 +// Use __FILE__LINE__ as a string containing "File.x(line#)" for example:
    1.31 +//     #pragma message( __FILE__LINE__ "Remove this line after testing.")
    1.32 +// The above example will display the file name and line number in the build window
    1.33 +// in such a way as to allow you to double click on it to go to the line.
    1.34 +#define __FILE__LINE__ __FILE__ "(" QUOTE(__LINE__) ") : "
    1.35 +
    1.36 +#endif	// __PRAGMAMESSAGE_H__