Problem
kwxgen generates Go bindings for wxDllLoader_LoadLibrary() and wxDllLoader_UnloadLibrary() even though these functions are commented out in kwx_classes.h (lines 2042-2044).
The generated file wx/dllloader_gen.go contains:
- Line 12: \C.wxDllLoader_LoadLibrary(name, success)\
- Line 16: \C.wxDllLoader_UnloadLibrary(...)\
These symbols do not exist in kwxFFI, causing CGo build failures:
\
....\wx\dllloader_gen.go:12:13: could not determine what C.wxDllLoader_LoadLibrary refers to
....\wx\dllloader_gen.go:16:2: could not determine what C.wxDllLoader_UnloadLibrary refers to
\\
Expected Behavior
kwxgen should skip generating bindings for function declarations inside /* ... */\ comment blocks in \kwx_classes.h.
Evidence
In \kwx_classes.h:
\\c
TClassDef(wxDllLoader)
/*
void* wxDllLoader_GetSymbol( int handle, TStringVoid name );
int wxDllLoader_LoadLibrary( TStringVoid name, void* success );
void wxDllLoader_UnloadLibrary( int handle );
*/
\\
These function declarations are deliberately commented out (not enabled), yet kwxgen generated the Go counterparts anyway.
Problem
kwxgen generates Go bindings for wxDllLoader_LoadLibrary() and wxDllLoader_UnloadLibrary() even though these functions are commented out in kwx_classes.h (lines 2042-2044).
The generated file wx/dllloader_gen.go contains:
These symbols do not exist in kwxFFI, causing CGo build failures:
\
....\wx\dllloader_gen.go:12:13: could not determine what C.wxDllLoader_LoadLibrary refers to
....\wx\dllloader_gen.go:16:2: could not determine what C.wxDllLoader_UnloadLibrary refers to
\\
Expected Behavior
kwxgen should skip generating bindings for function declarations inside /* ... */\ comment blocks in \kwx_classes.h.
Evidence
In \kwx_classes.h:
\\c
TClassDef(wxDllLoader)
/*
void* wxDllLoader_GetSymbol( int handle, TStringVoid name );
int wxDllLoader_LoadLibrary( TStringVoid name, void* success );
void wxDllLoader_UnloadLibrary( int handle );
*/
\\
These function declarations are deliberately commented out (not enabled), yet kwxgen generated the Go counterparts anyway.