avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] volatile in pgmspace.h ?


From: Marek Michalkiewicz
Subject: Re: [avr-libc-dev] volatile in pgmspace.h ?
Date: Tue, 17 Jun 2003 00:30:14 +0200
User-agent: Mutt/1.4i

On Mon, Jun 16, 2003 at 10:16:17PM +0000, E. Weddington wrote:
> As the macros "return" the byte being read from flash, the 
> only way I see to do this would be another parameter which 
> would hold a pointer to their address. I don't think this 
> would buy the user any advantage then.

We have macros here, not functions.  So, you can return the new
pointer value in the same macro argument, by using a simple C
assignment - no pointers.  Of course, this should only be done
in the _next macros, not in the normal ones.

Marek





reply via email to

[Prev in Thread] Current Thread [Next in Thread]