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

Cannot pass NULL to Pointer<void> #80

Open
SimoneAncona opened this issue Apr 12, 2023 · 0 comments
Open

Cannot pass NULL to Pointer<void> #80

SimoneAncona opened this issue Apr 12, 2023 · 0 comments

Comments

@SimoneAncona
Copy link

I have this code in TypeScript:

sdl.SDL2.SDL_RenderCopy(renderer, texture, NULL, NULL); // NULL from ref.NULL

Where SDL_RenderCopy is binded here as

...
"SDL_RenderCopy": ["int", [SDL2_RendererPtr, SDL2_TexturePtr, SDL2_RectPtr, SDL2_RectPtr]],
...

For now I have defined the pointers all as Pointer<void>
I'm trying to pass NULL but I get this error:
TypeError: error setting argument 3 - writePointer: Buffer instance expected as third argument

I tried debugging the project and i found that NULL is seen as undefined

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