[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stupid Question?



On Sat, Jul 22, 2000 at 01:30:07AM -0400, Jordan Bettis wrote:
> 
> Well, my slat question was pretty bad (somebody needs to learn how to read
> error messages). This one may be worse but I can't find the answer
> anywhere else.
> 
> I was looking in the gcc code, and I kept finding some weird prepossessor
> thing called "#line". a sample instance is:
> 
> #line 87 "c-parse.y"
> 
> Does anyone know what this is?

These are directives to the compiler to set the line number; they are
most often used with tools that generate C/C++ code from some external
file, such as yacc or lex, so that line numbers in errors match the
source file instead of the generated C/C++ file.
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.