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

FPC compatibility #331

Closed
JulStrat opened this issue Dec 29, 2020 · 1 comment
Closed

FPC compatibility #331

JulStrat opened this issue Dec 29, 2020 · 1 comment

Comments

@JulStrat
Copy link

Good day, Salvador!

One question - why do you use {$MODE OBJFPC} ?
I think the only right mode for Delphi / FPC compatibility is {$MODE Delphi}.
Also, don't forget about compiler directive {$PACKRECORDS C}, if you use C bindings (dynamic libraries).
I can prepare patch / PR if you wish.

My best regards and Happy New Year!

Julian.

@salvadordf
Copy link
Owner

salvadordf commented Dec 29, 2020

Hi,

The OBJFPC mode was added when I added Lazarus/FPC support in CEF4Delphi.

As you know, CEF4Delphi is based in DCEF3 and at that moment CEF4Delphi only supported Delphi.

The fpCEF3 project was similar to DCEF3 and it worked on Lazarus so I compared the code of those 2 projects and adapted the differences to CEF4Delphi.

fpCEF3 used the OBJFPC mode and it was much easier to keep using it.

The PACKRECORDS directive is not used by DCEF3 or fpCEF3. I'll keep it in mind when I try to fix the issue #278 because it could be the solution.

Thank you very much and happy new year! :D

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