View Single Post
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-30-2016 , 06:21   Re: Returning null handle in native
Reply With Quote #8

I guess you could just return 0, I believe null is a type-safe alias for 0.
I know it doesn't really say that you are returning a null handle to someone that is looking at the code. I guess you can add a comment on the same line saying "null" to document it better.

Last edited by klippy; 05-30-2016 at 06:24.
klippy is offline