Thread overview | |||||
---|---|---|---|---|---|
|
September 19, 2003 aliasing linkage identifiers | ||||
---|---|---|---|---|
| ||||
Hi! I think it would be useful to be able to alias the linkage identifiers. I want to do version (Win32) { alias Windows lnkmod; } version (linux) { alias C lnkmod; } extern (lnkmod) { ... ... ... } As it is now, I need to put the whole extern block inside a version block, thus doubling up the set of declarations. If I'ver overlooked some other solution, please mention it :) Lars Ivar Igesund |
September 19, 2003 Re: aliasing linkage identifiers | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lars Ivar Igesund | I see your point. I'll have to think about it! |
September 19, 2003 Re: aliasing linkage identifiers | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lars Ivar Igesund | In article <bke681$2cdr$1@digitaldaemon.com>, Lars Ivar Igesund says... > >Hi! > >I think it would be useful to be able to alias the linkage identifiers. > >I want to do > >version (Win32) { > alias Windows lnkmod; >} >version (linux) { > alias C lnkmod; >} > >extern (lnkmod) { > > ... > ... > ... > >} > >As it is now, I need to put the whole extern block inside a version block, thus doubling up the set of declarations. If I'ver overlooked some other solution, please mention it :) > >Lars Ivar Igesund > > I'd use #define and pass it through a C preprocessor -- hee hee hee!! John Boucher -- Quite contrary The King had Humpty pushed. |
Copyright © 1999-2021 by the D Language Foundation