// in SomeDLL.h
float declspec(dllexport) extern "C" SomeFunction(int argc,const float* argv);
// in SomeDLL.cpp
float SomeFunction(int argc,const float* argv){
float retVal = 0;
for(int i = 0;i<argc;++i){
retVal += argv[i];
}
return retVal;
}
// In SomeProc.dm
mob/verb/testNumber()
src << call("SomeDLL","SomeFunction",callType=NUMBER)(1,2,3) // Outputs "6"
I can see this being a really useful feature for many (including myself) that use DLLs, although I'm not sure how it would work for call()() at the moment (hence the callType argument)
How feasable would a feature like this be, and could this possibly be seen soon?