mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 17:45:35 +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 = '''
|
||||
void {name}_wrapper( void ** params )
|
||||
{{
|
||||
{unused_params}
|
||||
{locals}
|
||||
{unused_params}{locals}
|
||||
{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),
|
||||
locals=locals)
|
||||
return wrapper
|
||||
|
|
Loading…
Reference in a new issue