Wrap default values in a struct#578
Conversation
Coverage Report for CI Build 29700142382Coverage increased (+0.04%) to 37.803%Details
Uncovered Changes
Coverage Regressions2 previously-covered lines in 2 files lost coverage.
Coverage Stats💛 - Coveralls |
|
Not sure I actually like this concept. The correct thing to do here is to check the attributes to see if there is a literal or default value. |
8e28f8d to
34c5ee8
Compare
Everywhere that the constant value is used, we also check the attributes. |
this is my point. If we check the attributes, we KNOW whether it's a real null or no default value. This PR seems to be trying to solve something which is just user error. |
No, we don't; LibCpp2IL returns null for errors, too. Cpp2IL/LibCpp2IL/LibCpp2IlUtils.cs Line 182 in 01c1748 Cpp2IL/LibCpp2IL/LibCpp2IlUtils.cs Lines 229 to 230 in 01c1748
The motivation for this PR was to enable Il2CppInterop to override parameter default values from |
This ensures that we properly distinguish the constant null from having no default value at all.
34c5ee8 to
27652f6
Compare
This should be done by changing attributes. The error handling is exception case and should probably be changed to actually throw an exception. |
I can't. Setting the |
This ensures that we properly distinguish the constant
nullfrom having no default value at all.