Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Convert These Types of C++ Functions #11

Open
plankconst opened this issue Jul 28, 2018 · 0 comments
Open

Cannot Convert These Types of C++ Functions #11

plankconst opened this issue Jul 28, 2018 · 0 comments

Comments

@plankconst
Copy link

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()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant