mnemonic - Dave's Blog

Search
My timeline on Mastodon

Jazzpunk Trailer

2014 Jan 28, 5:02

I don’t care whether the game is good or not, I just love this trailer. Make more trailers. Also 240kb should be enough for anyone.

PermalinkCommentshumor parody hack hacker hack-the-planet johnny-mnemonic

I’m distressed when my coworkers don’t know their...

2012 May 6, 3:44


I’m distressed when my coworkers don’t know their backslash from their forward slash so I draw this to help them remember which is which.

PermalinkCommentstechnical slash backslash mnemonic

_opt Mnemonic

2011 May 24, 11:00

​I always have trouble remembering where the opt goes in SAL in the __deref_out case. The mnemonic is pretty simple: the _opt at the start of the SAL is for the pointer value at the start of the function. And the _opt at the end of the SAL is for the dereferenced pointer value at the end of the function.






SAL foo == nullptr allowed at function start? *foo == nullptr allowed at function end?
__deref_out void **foo No No
__deref_opt_out void **foo Yes No
__deref_out_opt void **foo No Yes
__deref_opt_out_opt void **foo Yes Yes
.
PermalinkCommentssal technical programming
Older Entries Creative Commons License Some rights reserved.