mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
libcef:
- change 'void *' arguments to 'void* ' to match style requirements. translator: - add support for const virtual methods. (Issue # 36) - output const vector argument types as 'struct _class_t* const*' (cons array, non-const members) instead of 'const struct _class_t**' (non-const array, const members) (Issue # 36) - always add the 'enum' qualifier when outputting C API enum attribute types. (Issue # 38) - update translated files. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@31 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -6,10 +6,13 @@ from cef_parser import *
|
||||
|
||||
def make_ctocpp_impl_proto(clsname, name, func, parts):
|
||||
proto = parts['retval']+' '+clsname
|
||||
const = ''
|
||||
if isinstance(func, obj_function_virtual):
|
||||
proto += 'CToCpp'
|
||||
if func.is_const():
|
||||
const = ' const'
|
||||
|
||||
proto += '::'+name+'('+string.join(parts['args'], ', ')+')'
|
||||
proto += '::'+name+'('+string.join(parts['args'], ', ')+')'+const
|
||||
return wrap_code(proto)
|
||||
|
||||
def make_ctocpp_impl_existing(clsname, name, func, impl):
|
||||
|
Reference in New Issue
Block a user