Raised This Month: $ Target: $400
 0% 

Solved Does the AMXX compiler inline variables at compile time?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-21-2022 , 21:42   Re: Does the AMXX compiler inline variables at compile time?
Reply With Quote #1

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

Last edited by fysiks; 11-21-2022 at 21:45.
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode