Raised This Month: $ Target: $400
 0% 

register_plugin, defines and constants.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
EthicalHacker007
Veteran Member
Join Date: May 2014
Old 06-10-2014 , 10:47   Re: register_plugin, defines and constants.
Reply With Quote #8

Quote:
Originally Posted by Backstabnoob View Post
Defines are replaced on compile time, so the string gets copied wherever you use it. Constants are initialized on plugin startup and the string is stored in memory with a pointer, which will be a better performer if you use it more than once as it won't have to be reinitialized.
That means if I use constants for "PLUGIN", "VERSION", "AUTHOR", even if I use it 1 time in entire plugin. It's better than define?
__________________
EthicalHacker007 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 09:44.


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