ClangSharp
ClangSharp copied to clipboard
[generate-macro-bindings] Cannot generate macro bindings
Cannot generate the bindings for macros.
The header file
#define API_VERSION 0x0001
The RSP file
--file
test.h
--output
test.cs
--namespace
Test.PInvoke
--language
c
--methodClassName
API
--config
generate-macro-bindings
Command line
ClangSharpPInvokeGenerator @test.rsp
Actual output
<empty file>
Expected output
namespace Test.PInvoke
{
public class API
{
public const int API_VERSION = 0x0001;
}
}
Version
test $ ClangSharpPInvokeGenerator --version
ClangSharp P/Invoke Binding Generator version 14.0.0
clang version 14.0.0
clangsharp version 14.0.0
Attachments
- test.zip - set of files to reproduce the issue