Raised This Month: $ Target: $400
 0% 

Solved Does the AMXX compiler inline variables at compile time?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 11-21-2022 , 07:11   Does the AMXX compiler inline variables at compile time?
Reply With Quote #1

Possibly stupid question...
Does the compiler inline variables at compile time?
Like:
PHP Code:
public Ham_Item_Deploy_Pre(iEnt)
{
    new 
id pev(iEnt pev_owner); // it will be referenced only once
    
console_print(0"%n deployed a flashbang!"id);

turns to this:
PHP Code:
public Ham_Item_Deploy_Pre(iEnt)
{
    
console_print(0"%n deployed a flashbang!"pev(iEnt pev_owner));

Or not?

If not, should I worry about it and make id static?
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951

Last edited by kww; 11-22-2022 at 08:52.
kww is offline
 



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