diff --git a/src/parse/token/stream.c b/src/parse/token/stream.c index b2fe9c6e..deb52aec 100755 --- a/src/parse/token/stream.c +++ b/src/parse/token/stream.c @@ -128,6 +128,7 @@ void read_token( struct parse* parse, struct token* token ) { while ( parse->macro_expan ) { if ( parse->macro_expan->output ) { token[ 0 ] = parse->macro_expan->output[ 0 ]; + token->pos = parse->macro_expan->pos; parse->macro_expan->output = token->next; if ( token->type == TK_MACRONAME ) { token->type = TK_ID; @@ -1023,4 +1024,4 @@ void free_token_list( struct parse* parse, struct token* head, tail->next = parse->token_free; parse->token_free = head; } -} \ No newline at end of file +}