-
Notifications
You must be signed in to change notification settings - Fork 22
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
Stubs #70
Comments
I would love the stubs :) |
See src/rect.stub.php which is for the SDL_Rect / SDL_Point classes Best pratice is to add 1 stub per source file in the sources |
@remicollet hey I've got some spare time again in the weekends and I'm trying to follow your suggestion. For examnple, I noticed the comment in the rect.sub.php file /** @generate-class-entries */ is that necessary? Another question I have is: does it matter if I specify the body of the functions/methods with random code? |
Yes, this is needed to generate the C sources |
Are there any stubs for this extension?
If yes where would I find them?
I'm in the process of writing some of my own stubs by hand.
So far I got all the examples working with stubs while playing with the extension.
I'm also in the process of learning to write php extensions and writing stubs is good exercise for me.
I was wondering if stubs would be helpful to someone, I don't mind continuing writing them for this extension.
The text was updated successfully, but these errors were encountered: