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
Generating a byte boolean with --with-transparent-struct MyBoolean=byte;Boolean generates a helper struct with a line with a missing parenthesis.
--with-transparent-struct MyBoolean=byte;Boolean
repro.h
#include <stdint.h> typedef uint8_t MyBoolean; typedef MyBoolean (*MyFunction)(void* userdata);
repro.rsp
--file repro.h --output ./ --namespace Repro --config multi-file preview-codegen exclude-fnptr-codegen generate-helper-types --with-transparent-struct MyBoolean=byte;Boolean
public static implicit operator MyBoolean(bool value) => new MyBoolean((byte)(value ? 1u : 0u);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description:
Generating a byte boolean with
--with-transparent-struct MyBoolean=byte;Boolean
generates a helper struct with a line with a missing parenthesis.Minimal reproduction:
repro.h
repro.rsp
Output:
The text was updated successfully, but these errors were encountered: