We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SWIG : 4.2.1
Now I have a c++ header file Logger.h.
Logger.h
class Logger { public: using LogMessage = void (*)(Logger::Level, const char *); static inline void logger_handler(LogMessage h) { Logger::instance()->_handler = h; } }
Expect c# generate file Logger.cs
Logger.cs
public class Logger : global::System.IDisposable { ... public delegate void LogMessage(Logger.Level level, string message); public static void LoggerHandler(LogMessage h) { csLoggerPINVOKE.Logger_LoggerHandler(h); } ... }
I tried a lot of methods to generate delegate code without success, and I wasn't very familiar with swig and c#. Expect a simple solution. thank you.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
SWIG : 4.2.1
Now I have a c++ header file
Logger.h
.Expect c# generate file
Logger.cs
I tried a lot of methods to generate delegate code without success, and I wasn't very familiar with swig and c#. Expect a simple solution. thank you.
The text was updated successfully, but these errors were encountered: