Re: macro _set_base - "do - while(0)" question

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Abdel <draconux@...>
Cc: <linux-kernel@...>
Date: Wednesday, January 2, 2008 - 7:49 am

On Wed, Jan 02, 2008 at 12:45:39PM +0100, Abdel wrote:
Without the do {} while (0)

then
1) you could not define the variable __pr
2) You would be fooled when you did:

	if (foo != bar)
		set_base(addr,base);


	Sam
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
macro _set_base - "do - while(0)" question, Abdel, (Wed Jan 2, 7:45 am)
Re: macro _set_base - "do - while(0)" question, DervishD, (Wed Jan 2, 8:42 am)
Re: macro _set_base - "do - while(0)" question, Sam Ravnborg, (Wed Jan 2, 7:49 am)