29.08.2014, 10:52
Hello, I'm writing a simple include file and I come to a situation where I have 2 choices:
1. Write it using native samp functions
2. Detect other includes which may make it better(fot both: me and users)
And I thought to myself: why not both?
****** once wrote that when an include is included a "_inc_filename" symbol is defined.
With this I could code for both options: when a user is using that include and when he's not.
The question: is all of this worth it? It has flaws like what if the user included that library AFTER my own and so on.
1. Write it using native samp functions
2. Detect other includes which may make it better(fot both: me and users)
And I thought to myself: why not both?
****** once wrote that when an include is included a "_inc_filename" symbol is defined.
With this I could code for both options: when a user is using that include and when he's not.
The question: is all of this worth it? It has flaws like what if the user included that library AFTER my own and so on.