@LocalContext
def cpp(shellcode):
 arch = context.arch
 os = context.os
 code = (_include_header() + shellcode)
 cmd = ['cpp', '-C', '-nostdinc', '-undef', '-P', ('-I' + _incdir), '/dev/stdin']
 return (_run(cmd, code).strip('\n').rstrip() + '\n')

@ LocalContext def cpp ( shellcode ) : arch = context . arch os = context . os code = ( _include_header ( ) + shellcode ) cmd = [ 'cpp' , '-C' , '-nostdinc' , '-undef' , '-P' , ( '-I' + _incdir ) , '/dev/stdin' ] return ( _run ( cmd , code ) . strip ( '\n' ) . rstrip ( ) + '\n' )
cpp -> str runs cpp over the given shellcode .