Is there any way to import a different library in the debug and release build of a module? The library I'm wrapping has two dll's, a debug one and a release one. It would be really nice to be able to incorporate the debug one, but BlitzMax doesn't seem to have a compiler directive to support it.
For example, I can do this :
And it doesn't even complain that Import needs to be at the top of the file, so that's ok. But there's no else to a compiler directive, as far as I can see and for some bizarre reason there's no matching ?Release directive, so all I can achieve is importing the debug dll in debug and nothing at all in release. I can't import both without having different names for all the functions, which would defeat the purpose of having them both. It's supposed to be seamless.
It would have to be something which doesn't involve rebuilding modules. I can't tell everyone to customize BRL's modules to make it work. Or install a custom BMK, for that matter.
For example, I can do this :
?Debug Import "-lSomeDLL-d" ?
And it doesn't even complain that Import needs to be at the top of the file, so that's ok. But there's no else to a compiler directive, as far as I can see and for some bizarre reason there's no matching ?Release directive, so all I can achieve is importing the debug dll in debug and nothing at all in release. I can't import both without having different names for all the functions, which would defeat the purpose of having them both. It's supposed to be seamless.
It would have to be something which doesn't involve rebuilding modules. I can't tell everyone to customize BRL's modules to make it work. Or install a custom BMK, for that matter.