C-To-Delphi
C-To-Delphi copied to clipboard
Cannot Convert These Types of C++ Functions
Great tool. I see it is able to convert a lot of C++ code. The best one I've seen in a long time.
One type of function I see that the converter is not able to parse. It is just completely blank instead of any mis-conversion.
int __stdcall ListC_Resize(ILanguageObject* pEL, COLLECTION_ID nID, int nNewCount)
{
BEGIN_METHOD(ListC, pList)
int nOldCount = pList->container.size();
if (nNewCount > nOldCount)
pList->container.insert(pList->container.end(), nNewCount - nOldCount, 0);
else if (nNewCount < nOldCount) {
pList->FreeChildren(pEL, nNewCount);
pList->container.erase(pList->container.begin() + nNewCount, pList->container.end());
}
END_METHOD()
}