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

C++ Macros #31

Open
scorninpc opened this issue Aug 23, 2019 · 2 comments
Open

C++ Macros #31

scorninpc opened this issue Aug 23, 2019 · 2 comments

Comments

@scorninpc
Copy link

I know this was merged with PHP repos, but i'm not PHP group and cannot login via masters to ask to php repo. But if you can help will be to much nice

I've ported Gtk 3, and working hard to understand FFI implementations to port my binding to FFI, but I'm measuring all the work to migrate this now or not. You can find some tests with FFI and the Gtk binding on my repos, if interesting you

Anyway, I seen the code of FFI extension, and see it's doesn't suport C++ macros, but have plan for that?

Thank you, and you opened a new world with FFI

@derrekbertrand
Copy link

I'm genuinely curious about the use case of accessing Gtk from PHP

@scorninpc
Copy link
Author

scorninpc commented Dec 19, 2019

@derrekbertrand, you can get working extension where https://github.com/scorninpc/php-gtk3, and some FFI tests where https://github.com/scorninpc/php-ffi-tests

I've bypassed macros rewriting main functions, like that https://github.com/scorninpc/php-ffi-tests/blob/master/tests/test.php#L177 and that https://github.com/scorninpc/php-ffi-tests/blob/master/tests/test.php#L270

I have some problems with callback params, but I'm working about that

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

2 participants