Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
502a4dc8
Commit
502a4dc8
authored
Nov 25, 2001
by
sof
Browse files
[project @ 2001-11-25 03:56:39 by sof]
extend the scope of the doNothing() macro; can now be used in Stg headers
parent
61120c8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ghc/includes/Rts.h
View file @
502a4dc8
/* -----------------------------------------------------------------------------
* $Id: Rts.h,v 1.1
4
2001/1
0
/2
9 11:33
:3
7
s
imonmar
Exp $
* $Id: Rts.h,v 1.1
5
2001/1
1
/2
5 03:56
:3
9
s
of
Exp $
*
* (c) The GHC Team, 1998-1999
*
...
...
@@ -94,14 +94,6 @@ extern "C" {
Useful macros and inline functions
-------------------------------------------------------------------------- */
/*
* Use this on the RHS of macros which expand to nothing
* to make sure that the macro can be used in a context which
* demands a non-empty statement.
*/
#define doNothing() do { } while (0)
#define stg_min(a,b) ({typeof(a) _a = (a), _b = (b); _a <= _b ? _a : _b; })
#define stg_max(a,b) ({typeof(a) _a = (a), _b = (b); _a <= _b ? _b : _a; })
...
...
ghc/includes/Stg.h
View file @
502a4dc8
/* -----------------------------------------------------------------------------
* $Id: Stg.h,v 1.4
0
2001/11/2
2 14:25:11 simonmar
Exp $
* $Id: Stg.h,v 1.4
1
2001/11/2
5 03:56:39 sof
Exp $
*
* (c) The GHC Team, 1998-1999
*
...
...
@@ -103,6 +103,14 @@ void _stgAssert (char *, unsigned int);
_stgAssert(__FILE__, __LINE__)
#endif
/* DEBUG */
/*
* Use this on the RHS of macros which expand to nothing
* to make sure that the macro can be used in a context which
* demands a non-empty statement.
*/
#define doNothing() do { } while (0)
/* -----------------------------------------------------------------------------
Global type definitions
-------------------------------------------------------------------------- */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment