Commit Graph

169 Commits

Author SHA1 Message Date
hadashiA
9fff4241e5
Merge pull request #54 from xanathar/pr/always-included-types
Adds a setting to force some types to always be included in the emitted types
2024-01-05 16:37:03 +09:00
hadashiA
a7397856a8
Merge pull request #62 from Cysharp/guitarrapc-patch-1
Use Cysharp/Actions/setup-dotnet default version
2024-01-05 15:38:45 +09:00
Ikiru Yoshizaki
3401217c0a
Update build-debug.yml 2023-11-15 12:20:22 +09:00
Ikiru Yoshizaki
7d85e79af7
Update build-release.yml 2023-11-15 12:19:03 +09:00
Marco Mastropaolo
1e7d81d618 Adds a setting to force some types to always be included in the emitted types.
This is useful to support, for example, enum types whose values
	are significant but whose type is not explicitly used in the
	functions prototypes.
2023-09-26 15:41:35 +02:00
github-actions[bot]
2c57dced0f Update cargo.toml version to 1.8.3 2023-09-20 09:52:34 +00:00
Yoshifumi Kawai
3df9df4e41
Merge pull request #52 from xanathar/pr/enum-negative-values
Added support for enums with negative values
2023-09-20 18:51:16 +09:00
Yoshifumi Kawai
6c04d9d2f1
Merge pull request #51 from xanathar/pr/repr-c-enums
Added compatibility with repr(C) enum types, defaulting to uint type
2023-09-20 18:50:24 +09:00
Yoshifumi Kawai
d375734bf4
Merge pull request #50 from xanathar/pr/nuint_compat
Added option to avoid nint/nuint types (compatibility with older C# versions).
2023-09-20 18:44:20 +09:00
Marco Mastropaolo
f7c221774b Added support for enums with negative values
This adds parse and generation support for enums whose discriminant
	value is a negative number. It's responsibility of the library to
	have the appropriate "repr" type.
2023-09-19 20:03:05 +02:00
Marco Mastropaolo
fd497d4205 Added compatibility with repr(C) enum types, defaulting to uint type
Having a `repr(C)` enum is syntactically perfectly legal and used,
	even though the specs are not clear on what underlying type is used
	for such an enum. Checking both documentation online and testing
	with several OS (macOS, Windows, Linux) and architectures
	(x86, x86-64 and aarch64) `u32` (i.e. `uint`) seems to be the
	correct choice on all platforms where C# interop is reasonable to
	happen.
	Still, without this a `repr(C)` enum would produce code that
	wouldn't compile at all.
2023-09-19 19:52:03 +02:00
Marco Mastropaolo
9eb88e4b34 Added option to avoid nint/nuint types (compatibility with older C# versions).
The option is called `csharp_use_nint_types` and defaults to `true`.
	Setting it as `false` will cause csbindgen to map the appropriate types
	to `System.IntPtr` and `System.UIntPtr` (the .NET aliases for `nint` and
	`nuint`) that are supported by all C# versions.
2023-09-19 19:32:24 +02:00
github-actions[bot]
8861b83a97 Update cargo.toml version to 1.8.2 2023-09-09 01:47:08 +00:00
Yoshifumi Kawai
5524c91958
Merge pull request #49 from Skgland/patch-1
fix braking change of Cysharp/csbindgen#48
2023-09-09 10:45:45 +09:00
Bennet Bleßmann
549fb46350
fix braking change of Cysharp/csbindgen#48 2023-09-08 20:29:40 +02:00
github-actions[bot]
a596032cb5 Update cargo.toml version to 1.8.1 2023-09-08 08:16:39 +00:00
Yoshifumi Kawai
61a19f49a0
Merge pull request #48 from startewho/const_fliter
Change the csharp_generate_const to csharp_generate_const_filter
2023-09-08 17:15:20 +09:00
startewho
82c91e13f5 Update README.md 2023-09-08 15:43:44 +08:00
startewho
c4781ee653 spell error 2023-09-08 15:37:29 +08:00
startewho
cee92d8130 add fliter 2023-09-08 15:31:23 +08:00
github-actions[bot]
a0e4804b3b Update cargo.toml version to 1.8.0 2023-09-07 08:40:51 +00:00
neuecc
6f4c59f928 ReadMe for v1.8.0 2023-09-07 17:38:45 +09:00
Yoshifumi Kawai
297da130fa
Merge pull request #46 from yamachu/support-reference
Support reference type ( & )
2023-09-07 17:21:32 +09:00
Yoshifumi Kawai
d4ba618c35
Merge branch 'main' into support-reference 2023-09-07 17:20:37 +09:00
Yoshifumi Kawai
47458c0f0c
Merge pull request #45 from yamachu/non-repr-attribute-struct-treat-as-empty-struct
Non repr attribute struct treat as unit struct
2023-09-07 17:19:12 +09:00
yamachu
8a047b31c5 Add reference type sample case 2023-09-06 22:27:51 +09:00
yamachu
3fe9084e47 Add reference type parser 2023-09-06 22:27:06 +09:00
yamachu
c27e01bd90 Add sample case 2023-09-06 19:35:34 +09:00
yamachu
dd6330a573 treat and parse structs without repr attributes as unit structs 2023-09-06 19:30:21 +09:00
github-actions[bot]
7b614935e5 Update cargo.toml version to 1.7.5 2023-09-05 07:46:33 +00:00
neuecc
6e27a5ba08 support NonZero 2023-09-05 16:42:44 +09:00
neuecc
510750c6b6 support NoNull, Box 2023-09-05 16:00:50 +09:00
neuecc
7041ca7f48 working for nonnull(not yet) 2023-09-04 20:57:50 +09:00
neuecc
4ed2767538 n2 2023-09-04 20:54:04 +09:00
neuecc
044c0afdf2 generate arg1, arg2, arg3 2023-09-04 20:44:27 +09:00
neuecc
27dd0cd91b Merge remote-tracking branch 'origin/main' into main 2023-09-04 20:23:34 +09:00
Yoshifumi Kawai
fe5b83c78a
Merge pull request #40 from KoolieAid/main
Function pointer parameters now has names
2023-09-04 20:23:00 +09:00
neuecc
9c4c90d3da remove run cargo test in release build 2023-09-04 19:57:33 +09:00
Yoshifumi Kawai
29c496fb27
Merge pull request #42 from Danielmelody/fix-tests
fix: unit tests
2023-09-04 19:41:51 +09:00
Danielhu
f834b72373 ci: add check for unit tests 2023-08-31 00:53:38 +08:00
Danielhu
aa9544a03e fix: unit tests 2023-08-31 00:27:37 +08:00
Go Erik
737bbd1fc5 function pointer params now has names 2023-08-27 03:04:52 +08:00
github-actions[bot]
f33f18bb8c Update cargo.toml version to 1.7.4 2023-08-15 13:12:06 +00:00
neuecc
7cd77da373 ready for 1.7.4 2023-08-15 22:10:32 +09:00
neuecc
1aa65e75fa more generate_const 2023-08-15 22:10:06 +09:00
neuecc
6e5a623352 add csharp_generate_const option 2023-08-15 21:18:30 +09:00
neuecc
511053bb5c ReadMe for csharp_imported_namespaces 2023-08-15 19:56:27 +09:00
Yoshifumi Kawai
32a9013d43
Merge pull request #38 from wavefunk/feat/extra-namespaces
feat: add extra namespaces to the exported file
2023-08-15 19:50:11 +09:00
Yoshifumi Kawai
ffea1be846
Update README.md 2023-07-28 18:00:51 +09:00
Sandeep Nambiar
148caab599 chore: undo formatting (unrelated change) 2023-07-25 04:57:24 +02:00