Patch to port TF2Items over to newdecls
3 Attachment(s)
Hey asherkin, I created a patch to port TF2Items over to the new syntax.
Tell me how I did? |
Re: Patch to port TF2Items over to newdecls
does 'delete' not set the variable to INVALID_HANDLE, and does it even matter to set it to invalid_handle (506) since the variable is in a scope that will soon exit? Talking about line 502.
Theres just a few logic things that could be fixed to make it look less bulky. |
Re: Patch to port TF2Items over to newdecls
Quote:
|
Re: Patch to port TF2Items over to newdecls
delete doesn't a variable to null in C either. Incidentally, you should be setting variables to null rather than INVALID_HANDLE unless you have some specific reason for using INVALID_HANDLE, e.g. you need to view view_as on it such as when you're returning a value in a native. Unless view_as<int>(null) actually works now.
|
Re: Patch to port TF2Items over to newdecls
Quote:
|
Re: Patch to port TF2Items over to newdecls
delete sets the variable to null.
|
Re: Patch to port TF2Items over to newdecls
Quote:
|
All times are GMT -4. The time now is 07:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.