preprocessFileLineNumbers – Talk
No edit summary |
m (remark about use) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
What's the difference between this and preprocessFile? --[[User:T D|T_D]] 21:23, 22 July 2006 (CEST) | What's the difference between this and preprocessFile? --[[User:T D|T_D]] 21:23, 22 July 2006 (CEST) | ||
---- | |||
LOL - This was my question ^^ | LOL - This was my question ^^ | ||
What is the difference between preprocessFileLineNumbers and preprocessFile? | What is the difference between preprocessFileLineNumbers and preprocessFile? | ||
--[[User:ViperMaul|ViperMaul]] | |||
---- | ---- | ||
The text string returned by preprocessFile -> "Text contained in file" | The text string returned by preprocessFile -> "Text contained in file" | ||
Line 9: | Line 11: | ||
The text string returned by preprocessFileLineNumbers -> "#LINE 1 '<PathnameToFile>'" + the above. | The text string returned by preprocessFileLineNumbers -> "#LINE 1 '<PathnameToFile>'" + the above. | ||
--[[User:Sy|Sy]] 16:52, 31 May 2007 (CEST) | --[[User:Sy|Sy]] 16:52, 31 May 2007 (CEST) | ||
---- | |||
That is what I was hoping. Thanks!! | That is what I was hoping. Thanks!! | ||
So I assume if there is an error in the code you would get better error feedback on the screen when your code breaks. A line number is better than guessing where in your code you saw that code before. | So I assume if there is an error in the code you would get better error feedback on the screen when your code breaks. A line number is better than guessing where in your code you saw that code before. | ||
--[[User:ViperMaul|ViperMaul]] 17:26, 31 May 2007 (CEST) | |||
Actually, it appears to add in a #LINE directive wherever you use an #INCLUDE statement as well. I still have no idea what exactly this is for. However, I do not know what the #line directive seems to do. See my sandbox for more info on preprocessor commands, of interest may be #line and __LINE__ --[[User:General Barron|General Barron]] 07:49, 11 April 2008 (CEST) | |||
the trailing example makes no sense other than to imply some sort of code statement is in the file | |||
[[User:Mikero|ook?]] 12:42, 29 August 2007 (CEST) | |||
you mean in the main article? - that's true... the examples 'result' is incorrect. it should read as per above example... also, subsequent branches out of the file that is being preprocessed also have '#LINE<number> <PathnameToFile> + <text of file>' and the line numbering appears to be hierarchical. --[[User:Sy|Sy]] 14:25, 29 August 2007 (CEST) |
Latest revision as of 06:49, 11 April 2008
What's the difference between this and preprocessFile? --T_D 21:23, 22 July 2006 (CEST)
LOL - This was my question ^^ What is the difference between preprocessFileLineNumbers and preprocessFile? --ViperMaul
The text string returned by preprocessFile -> "Text contained in file"
The text string returned by preprocessFileLineNumbers -> "#LINE 1 '<PathnameToFile>'" + the above. --Sy 16:52, 31 May 2007 (CEST)
That is what I was hoping. Thanks!! So I assume if there is an error in the code you would get better error feedback on the screen when your code breaks. A line number is better than guessing where in your code you saw that code before. --ViperMaul 17:26, 31 May 2007 (CEST)
Actually, it appears to add in a #LINE directive wherever you use an #INCLUDE statement as well. I still have no idea what exactly this is for. However, I do not know what the #line directive seems to do. See my sandbox for more info on preprocessor commands, of interest may be #line and __LINE__ --General Barron 07:49, 11 April 2008 (CEST)
the trailing example makes no sense other than to imply some sort of code statement is in the file ook? 12:42, 29 August 2007 (CEST)
you mean in the main article? - that's true... the examples 'result' is incorrect. it should read as per above example... also, subsequent branches out of the file that is being preprocessed also have '#LINE<number> <PathnameToFile> + <text of file>' and the line numbering appears to be hierarchical. --Sy 14:25, 29 August 2007 (CEST)