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

Automatic struct padding detection #74

Closed
ncannasse opened this issue Sep 20, 2017 · 1 comment
Closed

Automatic struct padding detection #74

ncannasse opened this issue Sep 20, 2017 · 1 comment

Comments

@ncannasse
Copy link
Member

We need obj fields and enum fields to match C compiler alignment (for C interaction + HL/C reflection). It is necessary to replace some hl_pad_size by hl_pad_struct and perform compile time alignment check.

ex: apple 32 bits, double are not aligned on 64 bits, etc.

@ncannasse
Copy link
Member Author

@pperidont can you check that this fixes the problem you had with OSX ?

alohner pushed a commit to playdigious/hashlink that referenced this issue Sep 21, 2017
* 'master' of https://github.com/HaxeFoundation/hashlink:
  Fixed hl_sys_read_dir (HaxeFoundation#75)
  added hl_pad_struct (close HaxeFoundation#74)
  allow to print dx error messages
  dynamically detect sizeof(bool)
  SDL & DirectX additions (HaxeFoundation#72)
  [TravisCI] use Docker to test linux64 too

# Conflicts:
#	src/hl.h
alohner pushed a commit to playdigious/hashlink that referenced this issue Sep 21, 2017
* master:
  Fixed hl_sys_read_dir (HaxeFoundation#75)
  added hl_pad_struct (close HaxeFoundation#74)
  allow to print dx error messages
  dynamically detect sizeof(bool)
  SDL & DirectX additions (HaxeFoundation#72)
  [TravisCI] use Docker to test linux64 too
ncannasse added a commit that referenced this issue Jul 31, 2018
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