1. Pypy
  2. Untitled project
  3. pypy


pypy / pypy / rlib / entrypoint.py

The branch 'arm-backed-float' does not exist.
secondary_entrypoints = {}

def entrypoint(key, argtypes, c_name=None, relax=False):
    """ Note: entrypoint should call llop.gc_stack_bottom on it's own.
    That's necessary for making it work with asmgcc and hence JIT
    def deco(func):
        secondary_entrypoints.setdefault(key, []).append((func, argtypes))
        if c_name is not None:
            func.c_name = c_name
        if relax:
            func.relax_sig_check = True
        return func
    return deco