Re: [fpc-pascal] Initializing constant (translate from C)

2017-10-17 Thread Sven Barth via fpc-pascal
Am 16.10.2017 21:36 schrieb "Darius Blaszyk" : > > Here's an interesting one. In C I have this code: > > #define ID1 MAKE_ID('A', 'B') > > Where MAKE_ID is a macro that depending on the endianness of the target will create either AB or BA. > > How would I be able to

Re: [fpc-pascal] Initializing constant (translate from C)

2017-10-16 Thread Dmitry Boyarintsev
On Mon, Oct 16, 2017 at 3:36 PM, Darius Blaszyk wrote: > Here's an interesting one. In C I have this code: > > #define ID1 MAKE_ID('A', 'B') > > Where MAKE_ID is a macro that depending on the endianness of the target > will create either AB or BA. > > The only issue

[fpc-pascal] Initializing constant (translate from C)

2017-10-16 Thread Darius Blaszyk
Here's an interesting one. In C I have this code: #define ID1 MAKE_ID('A', 'B') Where MAKE_ID is a macro that depending on the endianness of the target will create either AB or BA. How would I be able to translate this into Pascal? ID1 preferably would need to remain a constant. I tried using