Skip to content

Help: basic napi struct pass #26

Description

@konsumer

Forgive me, if the is the wrong place to ask, but I am working on node-raylib, which is a napi-based wrapper around raylib. I am hoping that instead of recreating structs on every call, I can create them in js, and pass references, and I can't seem to find a good example of what I am trying to do.

I made this demo project. It's probably some dumb C error I am making. Could anyone tell me what I am doin wrong, or is this even possible?

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