C-To-Delphi icon indicating copy to clipboard operation
C-To-Delphi copied to clipboard

Cannot Convert These Types of C++ Functions

Open plankconst opened this issue 6 years ago • 0 comments

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()
}

plankconst avatar Jul 28 '18 10:07 plankconst