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

FuncPtr signature checking #490

Open
ForNeVeR opened this issue Nov 23, 2023 · 0 comments
Open

FuncPtr signature checking #490

ForNeVeR opened this issue Nov 23, 2023 · 0 comments
Labels
area:cil-interop Related to CIL (.NET) interop kind:feature New feature or request status:help-wanted Open for contributors

Comments

@ForNeVeR
Copy link
Owner

After #356, Cesium now supports FuncPtr interop: you can pass a C function pointer to a .NET method that has FuncPtr<TDelegate> in its signature.

We should check the signatures of these functions (i.e. check if TDelegate is a corresponding Action or Func). And also while we are at it, figure out the signature mapping: in particular, how to emphasize the pointers in the signature.

These signatures of TDelegate aren't currently used anywhere in runtime, so they are mostly a compile-time thing.

See TODO[#490] in the code to look where to implement.

@ForNeVeR ForNeVeR added kind:feature New feature or request status:help-wanted Open for contributors area:cil-interop Related to CIL (.NET) interop labels Nov 23, 2023
ForNeVeR added a commit that referenced this issue Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:cil-interop Related to CIL (.NET) interop kind:feature New feature or request status:help-wanted Open for contributors
Projects
None yet
Development

No branches or pull requests

1 participant