Cobra Interactive Query Language pre

NAME

pre — show preprocessed source code context for marked tokens

SYNTAX

	p[re]
	p[re] number number
	p[re] * number

DESCRIPTION

The pre command works the same as the display command, except the text that is printed is the preprocessed version of the source code, rather than the source code itself, and the matched token is highlighted. This can be useful when, for instance, a token matches in the expanded version of macros, but the match is not clear from the un-preprocessed code itself. The same options as used for the display command can be used.

EXAMPLES

	: p		# displays the preprocessed source lines for all matches
	: p 4		# displays only the match for th 4th match
	: p 4 2		# adds 2 lines of context before and after the match
	: p * 2		# adds 2 lines for all matches
	: p 1 +2	# adds 2 lines after the first matched line
	: p 1 -2	# adds 2 lines before the first matched line

NOTES

This command is most useful if preprocessing is enabled, either on the command line or interactively with the cpp command.

SEE ALSO

cpp, display, list

Return to index
Manual
Tutorial
(Last Updated: 8 May 2017)