mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-24 01:05:41 +00:00
Don't generate lines with only whitespace
This commit is contained in:
parent
9b06f37601
commit
7776141a16
|
@ -136,11 +136,11 @@ def gen_function_wrapper(name, locals, args_dispatch):
|
||||||
wrapper = '''
|
wrapper = '''
|
||||||
void {name}_wrapper( void ** params )
|
void {name}_wrapper( void ** params )
|
||||||
{{
|
{{
|
||||||
{unused_params}
|
{unused_params}{locals}
|
||||||
{locals}
|
|
||||||
{name}( {args} );
|
{name}( {args} );
|
||||||
}}
|
}}
|
||||||
'''.format(name=name, unused_params='(void)params;' if len(args_dispatch) == 0 else '',
|
'''.format(name=name,
|
||||||
|
unused_params='' if args_dispatch else ' (void) params;\n',
|
||||||
args=', '.join(args_dispatch),
|
args=', '.join(args_dispatch),
|
||||||
locals=locals)
|
locals=locals)
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
Loading…
Reference in a new issue