Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add: options for DllImport and LibraryImport#1862

Draft
kumja1 wants to merge 4 commits intomono:mainfrom
kumja1:main
Draft

add: options for DllImport and LibraryImport#1862
kumja1 wants to merge 4 commits intomono:mainfrom
kumja1:main

Conversation

Copy link

kumja1 commented Aug 22, 2024

Resolves issue #1687

Copy link
Author

kumja1 commented Aug 22, 2024

@dotnet-policy-service agree

kumja1 marked this pull request as draft August 23, 2024 09:28
tritao marked this pull request as ready for review August 27, 2024 22:08
Copy link
Collaborator

tritao commented Aug 29, 2024

The build is failing:

CSharpTypePrinter.cs(612,65): error CS1001: Identifier expected [/home/runner/work/CppSharp/CppSharp/src/Generator/CppSharp.Generator.csproj]

Copy link
Author

kumja1 commented Sep 2, 2024

@tritao How would i regenerate the bindings for the cpp parser

Copy link
Collaborator

tritao commented Sep 2, 2024

Check https://github.com/mono/CppSharp/blob/main/src/CppParser/ParserGen/ParserGen.cs

And might want to extract https://github.com/mono/CppSharp/releases/download/CppSharp/headers.zip into your bin folder to generate for all supported platforms.

kumja1 marked this pull request as draft September 2, 2024 20:30
Copy link
Author

kumja1 commented Sep 5, 2024 *
edited
Loading

@tritao strings are typically utf16 in native code correct? or are they different depending on the platform(like wchar_t is utf32 on linux)

Copy link
Collaborator

tritao commented Sep 5, 2024

Yes they can be different depending on the platform or program.

It can be set as an option: https://github.com/mono/CppSharp/blob/main/src/Generator/Options.cs#L189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants