IN, OUT macros vs. source annotations

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Since new C compilers recognize SAL keywords (__in, __out, __in_opt, etc),
should we continue using macros IN, OUT, OPTIONAL?
Can OPTIONAL appear by itself, or only combined with IN or OUT?
Then, it should be replaced by some new macros, like IN_OPTIONAL,
OUT_OPTIONAL...

Regards,
Pavel
--
 
the all caps versions are pure noise, the compiler never sees them. the SAL
keywords are seen by prefast and can be used to validate calling contracts
in addition to helping a developer see the contract. Use the SAL when
possible.

d
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top