-
Notifications
You must be signed in to change notification settings - Fork 1
/
rcsid.h
16 lines (14 loc) · 841 Bytes
/
rcsid.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 1997-2004 Omni Development, Inc. All rights reserved.
//
// This software may only be used and reproduced according to the
// terms in the file OmniSourceLicense.html, which should be
// distributed with this project and can also be found at
// <http://www.omnigroup.com/developer/sourcecode/sourcelicense/>.
//
// Define a wrapper macro for rcs_id generation that doesn't produce warnings on any platform. The old hack of rcs_id = (rcs_id, string) is no longer warning free.
#define RCS_ID(rcsIdString) \
static const void *rcs_id = rcsIdString; \
static const void *__rcs_id_hack() { __rcs_id_hack(); return rcs_id; }
#define NAMED_RCS_ID(name, rcsIdString) \
static const void *rcs_id_ ## name = rcsIdString; \
static const void *__rcs_id_ ## name ## _hack() { __rcs_id_ ## name ## _hack(); return rcs_id_ ## name; }