8#ifndef INCLUDED_BSLS_IDENT
9#define INCLUDED_BSLS_IDENT
137#undef BDE_OMIT_INTERNAL_DEPRECATED
138#ifdef BDE_FORCE_OMIT_INTERNAL_DEPRECATED
139 #define BDE_OMIT_INTERNAL_DEPRECATED
142#undef BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
143#ifdef BDE_FORCE_DONT_ALLOW_TRANSITIVE_INCLUDES
144 #define BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
152#define BSLS_IDENT_RCSID(tag,str)
159#ifndef BSLS_IDENT_OFF
160#define BSLS_IDENT_OFF
170 #define _BSLS_IDENT(str) __asm__(#str);
171 #define BSLS_IDENT(str) _BSLS_IDENT(.ident str)
173#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
175 #if (!defined(__cplusplus)) || (__SUNPRO_CC >= 0x590)
176 #define _BSLS_IDENT(str) _Pragma(#str)
177 #define BSLS_IDENT(str) _BSLS_IDENT(ident str)
179#elif defined(__IBMC__) || defined(__IBMCPP__)
180 #define _BSLS_IDENT(str) _Pragma(#str)
181 #define BSLS_IDENT(str) _BSLS_IDENT(comment (user, str))
182#elif defined(_MSC_VER)
186 #define _BSLS_IDENT(str) __pragma(comment (user, #str))
187 #define BSLS_IDENT(str) _BSLS_IDENT(str)
189#elif defined(__HP_cc) || defined(__HP_aCC)
190 #define _BSLS_IDENT(str) _Pragma(#str)
191 #define BSLS_IDENT(str) _BSLS_IDENT(versionid str)
195#define BSLS_IDENT(str)
201#define BSLS_IDENT_JOIN2(x,y) x ## y
202#define BSLS_IDENT_JOIN(x,y) BSLS_IDENT_JOIN2(x,y)
209 #define BSLS_IDENT_RCSID(tag,str) BSLS_IDENT(str)
214 #define BSLS_IDENT_RCSID(tag,str) \
215 static char BSLS_IDENT_JOIN(ident_,tag)[] __attribute__((__unused__)) \
219#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
220 #if (!defined(__cplusplus)) || (__SUNPRO_CC >= 0x590)
221 #define BSLS_IDENT_RCSID(tag,str) BSLS_IDENT(str)
224 #define BSLS_IDENT_RCSID(tag,str) \
225 static char BSLS_IDENT_JOIN(ident_,tag)[] = str;
228#elif defined(__IBMC__) || defined(__IBMCPP__)
229 #if ((defined(__IBMC__) && __IBMC__ >= 1010) \
230 || (defined(__IBMCPP__) && __IBMCPP__ >= 1010))
231 #define BSLS_IDENT_RCSID(tag,str) BSLS_IDENT(str)
249 #define BSLS_IDENT_RCSID(tag,str) \
250 static char BSLS_IDENT_JOIN(ident_,tag)[] = str;
253#elif defined(_MSC_VER)
254 #define BSLS_IDENT_RCSID(tag,str) BSLS_IDENT(str)
255#elif defined(__HP_cc) || defined(__HP_aCC)
256 #define BSLS_IDENT_RCSID(tag,str) BSLS_IDENT(str)
260 #define BSLS_IDENT_RCSID(tag,str) \
261 static char BSLS_IDENT_JOIN(ident_,tag)[] = str;
265#ifndef BSLS_IDENT_RCSID
266#define BSLS_IDENT_RCSID(tag,str)
276 #define _BSLS_IDENT_BUILDID_IMP2(str) BSLS_IDENT(#str)
277 #define _BSLS_IDENT_BUILDID_IMP(str) _BSLS_IDENT_BUILDID_IMP2(str)
278 _BSLS_IDENT_BUILDID_IMP($cc: BUILDID $)
279 #undef _BSLS_IDENT_BUILDID_IMP
280 #undef _BSLS_IDENT_BUILDID_IMP2
296#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
301#elif defined(__IBMC__) || defined(__IBMCPP__)
303#elif defined(_MSC_VER)
305#elif (defined(__HP_cc) && __HP_cc-0 >= 62500) \
306 || (defined(__HP_aCC) && __HP_aCC-0 >= 62500)
#define BSLS_IDENT_RCSID(tag, str)
Definition bsls_ident.h:260
#define BSLS_IDENT_PRAGMA_ONCE
Definition bsls_ident.h:310
#define BSLS_IDENT_OFF
Definition bsls_ident.h:160
#define BSLS_IDENT(str)
Definition bsls_ident.h:195