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

delegate* support for function pointer type. #34

Open
anchurcn opened this issue Apr 10, 2024 · 1 comment
Open

delegate* support for function pointer type. #34

anchurcn opened this issue Apr 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@anchurcn
Copy link

I have traveled the code in this repo and I want to add delegate* support.

typedef int (*fnAdd)(int,int);
struct S{
    fnAdd pfnAdd;
};

generates

struct S
{
      delegate* unmanaged[Cdelc]<int,int,int> pfnAdd;
}

I found that there is already an implementation of delegate pointers here, but it is not for function pointers, but for functions. And it doesn't seem to be used. Any tips on implementing this?

@xoofx xoofx added the enhancement New feature or request label Apr 30, 2024
@xoofx
Copy link
Owner

xoofx commented Apr 30, 2024

Commit ad07b28 is introducing support for LibraryImport and function pointers instead of raw delegates. Still a few things to test on my own projects before I will publish a new package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants