holds a pointer to a next structure of the same type
Code: Select all
structure vpBank
' union {
' nmReg vpReg;
' nmUart vpUart;
' };
dim statePtr as ^TvoidSub '//state function
dim nextVP as ^vpBank
dim inPort as word '//for fast access to PORTx
dim inPin as word
dim outPort as word '//for fast access to LATx (or TRISx)
dim outPin as word
dim spare1 as word
dim spare2 as word
end structure
76 345 Recursive types are not allowed RGBWSv0_01p.mbas
Since a pointer has a fixed size of word, that should be allowed.
If not, any workaround?
regards peter