Raised This Month: $ Target: $400
 0% 

Function Handlers


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Keeper
Senior Member
Join Date: Nov 2006
Old 07-12-2010 , 23:07   Function Handlers
Reply With Quote #1

When hooking a function, you define a handler. Speaking theoretically, is there a downside to running a hook through multiple handlers?

When looking through SourceHook, it looked like it manages by plugin id and by the handler, so I would assume that it would be ok to have multiple handlers within a plugin without causing instability.

I ran some tests and it seemed to work just fine, but didn't want to jump in with both feet without asking some expert opinions.

TIA,
Keeper
Keeper is offline
BAILOPAN
Join Date: Jan 2004
Old 07-12-2010 , 23:45   Re: Function Handlers
Reply With Quote #2

This is totally fine. SM does it all over the place. There's even an SH_DECL_EXTERN macro or something to help you out.
__________________
egg
BAILOPAN 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 17:11.


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