Skip to content

Cannot pass NULL to Pointer<void> #80

Description

@SimoneAncona

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions