We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--with-type
Given a constant that is calculated with a shift:
#define MY_CONST (1<<4)
Then trying to use --with-type with this constant (e.g., --with-type=MY_CONST=ushort), constants scraper will produce the following code:
--with-type=MY_CONST=ushort
public const ushort MY_CONST = 1u<<4;
Which is invalid:
error CS0266: Cannot implicitly convert type 'uint' to 'ushort'. An explicit conversion exists (are you missing a cast?)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given a constant that is calculated with a shift:
Then trying to use
--with-type
with this constant (e.g.,--with-type=MY_CONST=ushort
), constants scraper will produce the following code:Which is invalid:
The text was updated successfully, but these errors were encountered: