Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFFI mentions "discouraged use" of callback function #6

Open
Elfansoer opened this issue Dec 9, 2021 · 0 comments
Open

CFFI mentions "discouraged use" of callback function #6

Elfansoer opened this issue Dec 9, 2021 · 0 comments

Comments

@Elfansoer
Copy link
Contributor

According to this, on the second to last paragraph it mentions the "discouraged use" of direct ffi.callback, which is used in here:

    ...
    lambda_for_create_host_objects = eval("lambda {}: func(cls.__rebuild_{}({}))".format(fields, name, fields), locals())
    lambda_for_callback = ffi.callback(callback_types, lambda_for_create_host_objects)
    if eval("self.lib.{}_do_all".format(name))(lambda_for_callback) == 0:
      pass
    ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant