filip wrote:
Unfortunately, this hasn't been implemented yet, but it is present on our wish list.
What's the time frame? Next release, within half a year, a year or mayby sometime in the far future?
Wish list or Todo list?
This is a very usefull feature that has bee implemented in all other embedded C and C++ compilers I've used the last 10-12 years.
Typical you have a timer module (with it's own local variables). And on every interrupt you want something special to happen. I.e. to set a status or a flag. The status is local to the module. But because the PIC has only one (or sometimes two) interrupt service routines you have to put the service routine in one common source file.
The way I do it is by making a small ISR function and declare it as inline. This way the access to the local varables is still only within the module, whereas the function is put directly into the main ISR without the additional function call (and the time it takes to process the call).
For people who don't understand why I'd like to keep varables private: You might want to consider reading up on the subject. And you will be supprised to see how the bug-rate drops when structuring your code onto modules. This applies to hobby projects as well.
Best Regards
Bernt