Raised This Month: $ Target: $400
 0% 

return PLUGIN_*


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 02-21-2005 , 14:28  
Reply With Quote #5

Quote:
Originally Posted by xeroblood
Ooooh.. thx for clearing that up PM!!
I thought they were all handled the same way internally with regards to the return value..

Thx for that list too, now I know which forwards I can omit the return value of completely!! I'm surprised to see that so many are actually ignored..

It would be pretty bad if a plugin decided to block plugin_init ^^

You can search meta_api for "plugin_init" (in quotes), there you will have ET_IGNORE which means the return value is ignored

ET_STOP means the "normal PLUGIN_HANDLED system" (basically, nonzero value -> stop executing plugins and return the value that the plugin returned)

ET_STOP2 is like ET_STOP but support PLUGIN_HANDLED_MAIN (-> stop execution on a PLUGIN_HANDLED, continue otherwise, returns the highest return value)

ET_CONTINUE means ignore return value and return the highest one (useful for one-plugin-only forwards).

More on this in CForward.h
__________________
hello, i am pm
PM 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 14:11.


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