On 08.11.2017 11:03, David Brown wrote:
(Also, if you are writing C rather
than C++, your function declaration is not correct.) The sensible way
to write this is:
static inline uint16_t GetStackPointer(void)
{
return (SPH << 8) | SPL;
}
It's not correct declaration too. Function name clearly states that it is
returning pointer, so it should return... pointer:
static inline void * GetStackPointer(void)
{
return (void *)((SPH << 8) | SPL);
}
--
Regards,
Sergey A. Borshch mailto: sb...@sourceforge.net
SB ELDI ltd. Riga, Latvia
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list