Open Susko3 opened 8 months ago
Ideally it can be done like you mentioned if your target is C#8 or above.
I have support for not using C#8 function pointers to which the code takes a delegate. The type FnPtr_X
is useful in this situation. I didn't remove it or favor of removing the type altogether when adding support because function pointes were added after and didn't get around to it.
How do you intend users to implement callback functions?
The shortest I could come up with is:
which includes one implicit cast, so the actual complied code is
The ideal situation would be just this, identical how this would be written in C: