.inc file function requirements
is there a way to require that a plugin using an inc file must use a set of specified functions. Much like what java does with its [w/e its called...i can't remember off the top of my head] for inheritance. I think C++ might do that too.....
I have a plugin extension that should require the use of two functions, and i'd like to be able to do that. Is there a way? Or is that not in pawn's style.... Sorry if this is in the wrong section. |
Re: .inc file function requirements
You mean that if a function inside a .inc file is not used then it shouldn't work?
|
Re: .inc file function requirements
yes.
I'm writing an API and there are a few functions required for the core that would make the extension useless without it. So might as well just require them....ya know? |
Re: .inc file function requirements
Can you give an example?
|
Re: .inc file function requirements
Let me try......
I have a core program, that includes its own API. This core has functionality of setPowers(id) and disablePowers(id). Now...these two functions are called every time they need to within the core, and include a forward within them, to enable, and disable the correlating powers. And if another plugin wants to work alongside this core, using its API, it would be pretty useless for it to not have these two functions defined, for that is the entire purpose of the API, easily set customizable powers, and in turn, disable them. Is there a way to require the extension declare these functions, and if not...it doesn't compile correctly or something? |
Re: .inc file function requirements
If the plugin includes the API and doesn't use it, well then the API is useless to the plugin and probably won't work as expected.
Just don't worry about requirements since there shouldn't be a situation where there are functions missing. |
Re: .inc file function requirements
I figured as much....thanks for confirming.
|
| All times are GMT -4. The time now is 15:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.