MCPcopy
hub / github.com/Gallopsled/pwntools / _include_header

Function _include_header

pwnlib/asm.py:330–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

328 return path
329
330def _include_header():
331 os = context.os
332 arch = context.arch
333 include = '%s/%s.h' % (os, arch)
334
335 if not include or not path.exists(path.join(_incdir, include)):
336 log.warn_once("Could not find system include headers for %s-%s" % (arch,os))
337 return '\n'
338
339 return '#include <%s>\n' % include
340
341
342def _arch_header():

Callers 1

cppFunction · 0.85

Calls 2

existsMethod · 0.80
warn_onceMethod · 0.80

Tested by

no test coverage detected