Is there a way to restrict function calls (at compile time)?
Lars Luthman
larsl@users.sourceforge.net
Sun Oct 23 23:48:00 GMT 2005
Is there a way, using GCC, to add 'properties' or 'flags' to C and C++
functions and generate warnings or error messages when a function with a
certain property (for example 'realtime safe') tries to call a function
that does not have that property?
I realise that this would be tricky to do for function pointers and
virtual functions, but a solution that only works for 'normal' function
calls will be very useful anyway.
--
Lars Luthman
PGP key: http://www.d.kth.se/~d00-llu/pgp_key.php
Fingerprint: FCA7 C790 19B9 322D EB7A E1B3 4371 4650 04C7 7E2E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20051023/f1b8deb0/attachment.sig>
More information about the Gcc-help
mailing list