[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Inline attribute
From: |
Ron |
Subject: |
RE: [avr-gcc-list] Inline attribute |
Date: |
Wed, 22 Nov 2006 21:05:30 +1100 |
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden
> On Behalf Of Bjarne Laursen
> Sent: Wednesday, 22 November 2006 12:40 AM
> To: address@hidden
> Subject: Re: [avr-gcc-list] Inline attribute
>
>
> static inline void RestoreState(STATE_REG ps)
> {
> SREG = pes;
> }
>
> static makes the function local, so that you can define it in
> more modules
Yep, declaring it static was the key. Thanks all. Ron