I was wondering if anyone has come up with some pragma compiler directives, so we can write or modify old code without maintaining multiple versions of the code that we write. I have searched this forum, with no luck. But as with all Forums, it is hard to find information sometimes. I think if we could solve this issue, the community could be informed how to write code more efficiently to cover both streams.
For instance, the wire library has changed some methods, and I would like my #defines to be able to identify and change the code for both the old and new methods using pre-compiler directives, possibly through pragma data.
Any other suggestions on how to handle this issue are also welcome.
Thanks in advance for your advice.