def cfunc(sig, locals={}, cache=False, **options):
 sig = sigutils.normalize_signature(sig)
 def wrapper(func):
  from .ccallback import CFunc
  res = CFunc(func, sig, locals=locals, options=options)
  if cache:
   res.enable_caching()
  res.compile()
  return res
 return wrapper

def cfunc ( sig , locals = { } , cache = False , ** options ) : sig = sigutils . normalize_signature ( sig ) def wrapper ( func ) : from . ccallback import CFunc res = CFunc ( func , sig , locals = locals , options = options ) if cache : res . enable_caching ( ) res . compile ( ) return res return wrapper
this decorator is used to compile a python function into a c callback usable with foreign c libraries .