php-ffi icon indicating copy to clipboard operation
php-ffi copied to clipboard

C++ Macros

Open scorninpc opened this issue 6 years ago • 2 comments

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

scorninpc avatar Aug 23 '19 02:08 scorninpc

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

derrekbertrand avatar Dec 18 '19 23:12 derrekbertrand

@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

scorninpc avatar Dec 19 '19 11:12 scorninpc