Feature #3890
closedDeal with Linux kernel API macros at global scope
0%
Description
During development of models 110, 130 and 148 it was noticed that using Linux kernel API macros at global scope is a common way to declare some global variables and initialize them in static. This mechanism also can be used (but used rarely) at a function scope level and this can be processed by current abilities of Aspectator (primarily because of we can insert calls to model functions there). But for global scope now it requires incomprehensible actions like defining some additional auxiliary unique functions, calling them in ldv_initialize (how we can do that if we don't know how to distinguish them...), etc.
To deal with Linux kernel API macros at global scope we decided to extend a rerouter script functionality to allow to collect different lists of template parameters (default is for function parameter signatures, second is for macrofunction parameters, etc.) and instantiate templates on the basis of them.
Updated by Evgeny Novikov almost 12 years ago
It looks like without #3857 fixing this feature can't be implemented in a full way.
Updated by Evgeny Novikov almost 12 years ago
- Status changed from Open to Resolved
Implemented in commit 9a663b3 of the master branch. QA tests passed.
Updated by Evgeny Novikov almost 12 years ago
- Status changed from Resolved to Closed
- Published in build set to 9a663b3
Works good.