Re: [fpc-pascal] How to translate C macro

2017-01-03 Thread Santiago A.
El 02/01/2017 a las 21:57, Darius Blaszyk escribió: > Hi all, > > Could someone suggest how to translate the following code to pascal? > > #define prev(X) ( *( (void **) ( ((void *) (X)) - 32 ) ) ) > . > prev(ptr) = prev(last); > > I tried converting the macro to an inline function but I ge

[fpc-pascal] How to translate C macro

2017-01-02 Thread Darius Blaszyk
Hi all, Could someone suggest how to translate the following code to pascal? #define prev(X) ( *( (void **) ( ((void *) (X)) - 32 ) ) ) . prev(ptr) = prev(last); I tried converting the macro to an inline function but I get the error message: Error: Argument cannot be assigned to. The fo