preproc: Add dump_token helper
commit49e8f698fcdd121a5646a2d54da27fb15785756f
authorCyrill Gorcunov <gorcunov@gmail.com>
Thu, 11 Nov 2010 12:06:12 +0000 (11 15:06 +0300)
committerCyrill Gorcunov <gorcunov@gmail.com>
Thu, 11 Nov 2010 19:44:35 +0000 (11 22:44 +0300)
tree6575c73f65686937cee3a5254f70f901ec32f3a0
parent574fbf1972935e1d3199cf5ea7efe796fae5d29c
preproc: Add dump_token helper

While being debugging some nifty problem I found
that it might be useful to produce a full dump of
tokens, in particular text of tokens.

For this reason dump_token is here just to not loose
it. It doesn't affect normal build procedure since it
requires a special -DNASM_TRACE to be passed to the
compiler. Which of course we don't in a regular
compilations.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
preproc.c