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.
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.
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 |