translator.py not creating #include

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

translator.py not creating #include

Postby andybrown » Fri Jan 04, 2013 11:37 am

I guess this question is for Marshall.

I'm adding a feature and using translate.py (via translate.bat) to get the ctocpp and cpptoc bridge classes. The problem is that the generated .cc files are missing the #include section, e.g snippet from the .cc file:

Code: Select all
// This file was generated by the CEF translator tool. If making changes by
// hand only do so within the body of existing method and function
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//



// CONSTRUCTOR - Do not edit by hand.


Can you please point me at what the translator is looking for when it decides to create the #include?
andybrown
Techie
 
Posts: 21
Joined: Thu May 03, 2012 10:55 am

Re: translator.py not creating #include

Postby andybrown » Fri Jan 04, 2013 11:58 am

Never mind, found it. The translator is very sensitive to whitespace around the pure virtual specifier. i.e. this is good:

Code: Select all
virtual void Callback(int arg) =0;


but this is bad:

Code: Select all
virtual void Callback(int arg)=0;
andybrown
Techie
 
Posts: 21
Joined: Thu May 03, 2012 10:55 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 215 guests