dart-lang / dart-lang/native

Ffigen won't generate constants for function pointers created from constants

Open
#327 4 comments 0 reactions 0 assignees View on GitHub
package:ffigen
Dominant language
Dart
Stars
275
Forks
144
Avg merge
2d 10h
Merged PRs (30d)
47

Description

I'm generating bindings for the un4seen BASS audio library, and in BASS.h, there are some weird constants like this:
#define STREAMPROC_PUSH (STREAMPROC*)-1 // push stream
Bindgen doesn't seem to recognize this and I don't blame it because it probably should've just been a normal function, but can support be added for this? Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.