Raised This Month: $ Target: $400
 0% 

In general, when should I use stock vs public vs [blank]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-31-2014 , 04:19   Re: In general, when should I use stock vs public vs [blank]
Reply With Quote #1

stock is for functions in include files (they don't get compiled into the plugin if unused), public is for functions that other plugins or SourceMod needs to be able to call (i.e. forward callbacks), and no specifier is for everything else (there is also static which is used for "internal" functions in include files, which are only visible to other functions in that file).
__________________
asherkin 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 21:09.


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