Make a function for get_itbl, rather than using a CPP macro
authorIan Lynagh <ian@well-typed.com>
Sat, 25 Aug 2012 10:31:50 +0000 (11:31 +0100)
committerIan Lynagh <ian@well-typed.com>
Sat, 25 Aug 2012 10:31:50 +0000 (11:31 +0100)
commit8413d83859ee0120e52bb1b3cd775b7344b52c76
tree4a4280e8065955b3e08b303fa416587990b68824
parent75f2e87bd7b6b8c0143addc59abfe68456e59591
Make a function for get_itbl, rather than using a CPP macro

This has several advantages:
* It can be called from gdb
* There is more type information for the user, and type checking
  for the compiler
* Less opportunity for things to go wrong, e.g. due to missing
  parentheses or repeated execution

The sizes of the non-debug .o files hasn't changed (other than
Inlines.o), so I'm pretty sure the compiled code is identical.
includes/rts/storage/ClosureMacros.h
rts/Printer.c
rts/RaiseAsync.c
rts/sm/MarkWeak.c
rts/sm/Sanity.c