Writing an include: detect other includes and use them
#1

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)