mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-25 07:40:40 -07:00
Add statistic_decl (change.dylan.kinglet.170577)
Copied from Perforce Change: 20605 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
abb8a5bcc7
commit
d440869fba
1 changed files with 18 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/* impl.h.mpmtypes: MEMORY POOL MANAGER TYPES
|
||||
*
|
||||
* $HopeName: MMsrc!mpmtypes.h(trunk.72) $
|
||||
* Copyright (C) 1997, 1998 Harlequin Group plc. All rights reserved.
|
||||
* $HopeName: MMsrc!mpmtypes.h(trunk.73) $
|
||||
* Copyright (C) 1997, 1998, 1999 Harlequin Group plc. All rights reserved.
|
||||
*
|
||||
* .readership: MM developers.
|
||||
* .design: design.mps.type
|
||||
|
|
@ -374,4 +374,20 @@ typedef int WriteFC; /* Promoted */
|
|||
typedef double WriteFD;
|
||||
|
||||
|
||||
/* STATISTIC_DECL -- declare a field to accumulate statistics in
|
||||
*
|
||||
* The argument is a field declaration (a struct-declaration minus the
|
||||
* semicolon) for a single field (no commas). Currently, we always
|
||||
* leave them in, see design.mps.metrics.
|
||||
*/
|
||||
|
||||
#if defined(DIAGNOSTICS)
|
||||
#define STATISTIC_DECL(field) field
|
||||
#elif defined(DIAGNOSTICS_NONE)
|
||||
#define STATISTIC_DECL(field) field
|
||||
#else
|
||||
#error "No diagnostics configured."
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* mpmtypes_h */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue