Skip to content
Snippets Groups Projects
Commit e7df5b39 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1999-04-27 12:25:23 by simonm]

Add CLOSURE_TBL() macro for building closure tables.
parent 5037aed1
No related merge requests found
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* $Id: ClosureMacros.h,v 1.12 1999/04/27 10:59:30 sewardj Exp $ * $Id: ClosureMacros.h,v 1.13 1999/04/27 12:25:23 simonm Exp $
* *
* (c) The GHC Team, 1998-1999 * (c) The GHC Team, 1998-1999
* *
...@@ -337,6 +337,12 @@ SET_STATIC_HDR(PrelBase_CZh_closure,PrelBase_CZh_info,costCentreStack,const); ...@@ -337,6 +337,12 @@ SET_STATIC_HDR(PrelBase_CZh_closure,PrelBase_CZh_info,costCentreStack,const);
#define CHARLIKE_CLOSURE(n) ((P_)&CHARLIKE_closure[n]) #define CHARLIKE_CLOSURE(n) ((P_)&CHARLIKE_closure[n])
#define INTLIKE_CLOSURE(n) ((P_)&INTLIKE_closure[(n)-MIN_INTLIKE]) #define INTLIKE_CLOSURE(n) ((P_)&INTLIKE_closure[(n)-MIN_INTLIKE])
/* -----------------------------------------------------------------------------
Closure Tables (for enumerated data types)
-------------------------------------------------------------------------- */
#define CLOSURE_TBL(lbl) const StgClosure *lbl[] = {
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
Payload access Payload access
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment