Skip to content

Need a way to create a structure in LPython, pass a pointer to C #1801

Open
@certik

Description

@certik

We need a nice way to create a structure in LPython, and pass a pointer to it into C function that expects void f(struct S *s).

TODO:

  • figure out a nice way to do it
  • add a test
  • make sure it works both in CPython and LPython

Metadata

Metadata

Assignees

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