[Question] including multiple files with same name
#10

Quote:
Originally Posted by NaS
Посмотреть сообщение
Try:

#include <../file>
#undef _inc_
#include <../file>

// NVM didnt read your comment as I wrote this 5 mins ago.

Well I think the easiest way is renaming. There shouldn't be a problem with this right?
It's definitely possible to include both files somehow, but isn't that more complicated and unnecessary?

Also, make sure that both includes don't use the same define preventing it from being double included (apart from the internal one, like most includes have something like "#define ZCMD_INCLUDED")
It's not a library I downloaded, its just a part of the gamemode I'm working on.
And since I wrote those files, I can assure you that those kind of definitions are not there.

Quote:
Originally Posted by NaS
Посмотреть сообщение
Okay then, I will try around a bit. There must be a way ..
Well according to the pawn-lang.pdf, which is provided by CompuPhase, it is possible but for some reason it doesn't work.

EDIT: It might be my fault, although I checked if its even defined before undefining it, and to make sure I even used #error directive to check if its defined.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)