Skip to content

Hook in custom callbacks to ccall #1614

Open
@certik

Description

@certik

In pure Python mode we need some way to register custom callbacks with ltypes, for example:

import ltypes
def callback(name):
    ...
ltypes.register_ccall_callback(callback)

@ccall
def f(..)
   ...

Now when f is called in pure Python mode, ltypes that implements the ccall decorator would instead call the user defined callback function that can provide custom callback, so that we do not need to call into C.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions