Does the AMXX compiler inline variables at compile time?
Possibly stupid question...
Does the compiler inline variables at compile time? Like: PHP Code:
PHP Code:
If not, should I worry about it and make id static? |
Re: Does the AMXX compiler inline variables at compile time?
Quote:
|
Re: Does the AMXX compiler inline variables at compile time?
Quote:
Quote:
|
Re: Does the AMXX compiler inline variables at compile time?
Quote:
|
Re: Does the AMXX compiler inline variables at compile time?
While it's theoretically possible, I'm quite sure that the compiler won't optimize that out of the code. As long as it's not called really often or isn't really large, it really won't matter which option you choose. For the cases where it's large or called often, you would use static.
In your case, using it directly without variable creation is probably the best way to go about it. |
Re: Does the AMXX compiler inline variables at compile time?
Quote:
Quote:
Code:
0x210 PROC ; public Ham_Item_Deploy_Pre(iEnt)Code:
0x298 PROC ; public Ham_Item_Deploy_Pre2(iEnt) |
| All times are GMT -4. The time now is 15:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.