Weak symbols in codeprover
古いコメントを表示
We use the gcc attributing in order to mark functions weak in libraries. That way projects including these libraries can overwrite the content of that weak function with custom content.
e.g. usage in a library:
void __attribute__((weak)) foo (void)
{
}
The codeprover (polyspace-code-prover-nodesktop) doesn't seem to understand this attribute, as it is gcc specific implementation.
Does codeprover provide some alternative syntax for this?
I can see a valid alternative, but that would be quiet intrusive for our libraries:
#ifndef NO_FOO_IMPLEMENTATION
void foo(void)
{
}
#endif
So what does codeprover support in order to mark a function as weak, over writable by other implementation.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Bug Finder Analysis on Clusters についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!