Sample code blues


#1

Why o why doesn’t anyone seem to care to compile sample code before it is comitted to documentation?

for example:
How is this supposed to compile:

#define NUM_GPIO_OUT 2 
adl_ioDefs_t Gpio_Out_Config[NUM_GPIO_OUT] = {  
     
    {ADL_IO_GPO | 20 | ADL_IO_DIR_OUT | ADL_IO_LEV_LOW } }; 
    {ADL_IO_GPIO | 23 | ADL_IO_DIR_OUT | ADL_IO_LEV_LOW} }; 
       
        s32 myGpioOut_Handle;

(example taken from ADL user guide page 111)

(i’m sorry, but i just need to vent my frustration a bit)