Commit 0c039fb9 authored by simonmar's avatar simonmar
Browse files

[project @ 2003-02-06 10:04:57 by simonmar]

Oops, Add rts_getFunPtr too.
parent d40db603
/* ----------------------------------------------------------------------------
* $Id: RtsAPI.c,v 1.41 2003/02/06 09:56:10 simonmar Exp $
* $Id: RtsAPI.c,v 1.42 2003/02/06 10:04:57 simonmar Exp $
*
* (c) The GHC Team, 1998-2001
*
......@@ -357,6 +357,15 @@ rts_getPtr (HaskellObj p)
return (void *)(p->payload[0]);
}
HsFunPtr
rts_getFunPtr (HaskellObj p)
{
// See comment above:
// ASSERT(p->header.info == FunPtr_con_info ||
// p->header.info == FunPtr_static_info);
return (void *)(p->payload[0]);
}
#ifdef COMPILER /* GHC has em, Hugs doesn't */
HsBool
rts_getBool (HaskellObj p)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment