-
Notifications
You must be signed in to change notification settings - Fork 195
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
cpp.Pointer requires a defined type / Breaks externs #432
Comments
Currently exploring alternatives to using |
Changing to use a cpp.RawPointer fixes things! Sorry for the disturbance! (Hadn't noticed cpp.RawPointer before :) ) |
I'm still a bit curious what exactly changed here and what the difference between Pointer and RawPointer is. That might be worth documenting? |
As far as I know, a RawPointer is a straight up C++ pointer The change here is that |
I think I can remove the sizeof from the header. You are right that it is an unnecessary restriction. |
Yep, changing to a RawPointer causes more issues relating to Dynamic! Should I pull request or can you do a small commit for this? :) |
Revision: 4a6b30a
Date: 13/4/2016 9:06:06 AM
In this revision, this was added:
hxcpp/include/cpp/Pointer.h
Line 150 in a66838a
This causes issues when compiling libraries that contain forward declared types, specifically snowkit/linc_sdl#8
Removing that one line allowed me to compile my project. In SDL sources, SDL_Window is defined as
typedef struct SDL_Window SDL_Window;
ininclude/SDL_video.h
SDL_Window is given a concrete definition ONLY in internals that shouldn't be used from the public API.
I would argue that requiring the
sizeof()
of a type breaks pointers, because of cases like the above, which in my view aren't all too uncommon.The text was updated successfully, but these errors were encountered: