STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
crtwrn.h
Go to the documentation of this file.
1 /***
2 *crtwrn.h
3 *
4 * Copyright (c) Microsoft Corporation. All rights reserved.
5 *
6 *Purpose:
7 * This file contains the IDs and messages for warnings
8 * in the CRT headers.
9 *
10 ****/
11 
12 #pragma once
13 
14 #ifndef _INC_CRTWRN
15 #define _INC_CRTWRN
16 
17 #include <crtdefs.h>
18 
19 #define __CRT_WARNING( _Number, _Description ) \
20  message("" __FILE__ "(" _CRT_STRINGIZE(__LINE__) ") : " \
21  "warning CRT" _CRT_STRINGIZE(_Number) ": " _CRT_STRINGIZE(_Description))
22 
23 #define _CRT_WARNING( _Id ) \
24  __CRT_WARNING( _CRTWRN_WNUMBER_##_Id, _CRTWRN_MESSAGE_##_Id )
25 
26 /*
27 A warning is a 4-digit ID number (_CRTWRN_WNUMBER_*)
28 followed by a message (_CRTWRN_MESSAGE_*)
29 Emit a warning by adding the following code to the header file:
30  #pragma _CRT_WARNING( id )
31 */
32 
33 /* NAME */
34 /* #pragma _CRT_WARNING( NAME ) */
35 /* #define _CRTWRN_WNUMBER_NAME 9999 */
36 /* #define _CRTWRN_MESSAGE_NAME description */
37 
38 /* ID 1001 is obsolete; do not reuse it */
39 
40 /* ID 1002 is obsolete; do not reuse it */
41 
42 /* ID 1003 is obsolete; do not reuse it */
43 
44 /* _NO_SPECIAL_TRANSFER */
45 /* #pragma _CRT_WARNING( _NO_SPECIAL_TRANSFER ) */
46 #define _CRTWRN_WNUMBER__NO_SPECIAL_TRANSFER 1004
47 #define _CRTWRN_MESSAGE__NO_SPECIAL_TRANSFER \
48  Special transfer of control routines not defined for this platform
49 
50 /* ID 1005 is obsolete; do not reuse it */
51 
52 /* ID 1006 is obsolete; do not reuse it */
53 
54 /* _DEPRECATE_STATIC_CPPLIB */
55 /* #pragma push_macro("_STATIC_CPPLIB") */
56 /* #undef _STATIC_CPPLIB */
57 /* #pragma _CRT_WARNING( _DEPRECATE_STATIC_CPPLIB ) */
58 /* #pragma pop_macro("_STATIC_CPPLIB") */
59 #define _CRTWRN_WNUMBER__DEPRECATE_STATIC_CPPLIB 1007
60 #define _CRTWRN_MESSAGE__DEPRECATE_STATIC_CPPLIB _STATIC_CPPLIB is deprecated
61 
62 /* ID 1008 is obsolete; do not reuse it */
63 
64 #endif /* _INC_CRTWRN */