I don't like the design of this one. It introduces a dependency for SQPlus for all plugins using ScriptingManager interface. This essentially breaks the idea of an interface. So "scriptinmanager" should definitely not include sqplus.h.
If thats the case it should be fine. A forward declaration to SQChar might be enough, but I didn't try...
i see your problem... the actual dependency goes to squirrel, but it's the same... i will look into it.
Some questions:
- how can i forward declare a type in c++?
- The problem with forward declaration is that SQChar can be wchar_t or char... so i have to put a preprocessorswitch
A other possibility would be to move the function to somewhere else... Maybe a new file like scriptutil.cpp
I'm in a region with limited internet, so my answers won't be immediate.
greetings