equal
deleted
inserted
replaced
1 pragmamessage.h |
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // 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 |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Created at: 20-Dec-99 10:38:03 AM |
|
15 // Defines a macro for the file line pragma message |
|
16 // |
|
17 // |
|
18 |
|
19 |
|
20 #if !defined __PRAGMAMESSAGE_H__ |
|
21 #define __PRAGMAMESSAGE_H__ |
|
22 |
|
23 #define _QUOTE(x) # x |
|
24 #define QUOTE(x) _QUOTE(x) |
|
25 |
|
26 // Use __FILE__LINE__ as a string containing "File.x(line#)" for example: |
|
27 // #pragma message( __FILE__LINE__ "Remove this line after testing.") |
|
28 // The above example will display the file name and line number in the build window |
|
29 // in such a way as to allow you to double click on it to go to the line. |
|
30 #define __FILE__LINE__ __FILE__ "(" QUOTE(__LINE__) ") : " |
|
31 |
|
32 #endif // __PRAGMAMESSAGE_H__ |