Re: [g-a-devel]at-poke initialisation



Dave Malcolm wrote:
> 
> The call to SPI_init at the top of main in at-poke is wrapped inside in
> a g_assert macro.
> 
> If G_DISABLE_ASSERT is defined, the expression inside g_assert is
> removed during preprocessing, and SPI doesn't get initialised.
> 
> I've attached a patch which should fix this.  OK to commit?
> 

Please do.

Padraig

> --
> David Malcolm
> http://www.davemalcolm.demon.co.uk
> 
>   --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>                            Name: initialisation.patch
>    initialisation.patch    Type: text/x-patch
>                        Encoding: 7bit



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