SAL annotations

  • Thread starter Thread starter Egbert Nierop \(MVP for IIS\)
  • Start date Start date
E

Egbert Nierop \(MVP for IIS\)

Are they really making any impact on produced code?

for instance if you look at the code below, in assembly it does not produce
any check. And if you set an annotation on them, it should expectingly
produce an error but it does not...

void dotest2(__in PCWSTR test, __in DWORD* test2)
{

AtlTrace(L"lal lala la %s\n", test);

test = L"puk";

*test2 = 1234;

}
 
Hi Egbert!
Are they really making any impact on produced code?

for instance if you look at the code below, in assembly it does not
produce any check. And if you set an annotation on them, it should
expectingly produce an error but it does not...

You must enabled the "/analyze" switch in your compiler setting!
Only if this setting is set, the sompiler will check the SAL annotations...

Greetings
Jochen
 

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