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
C header:
unsigned int val; #define MMIO32(addr) (*(volatile unsigned int *)(addr)) #define VOL_VAL MMIO32(&val)
dpp code what uses this macros:
VOL_VAL |= 1;
Produced D code:
( * ( volatile uint32_t * ) ( & val ) ) |= 1; // contains non-D "volatile" keyword
Compilation error:
test.d(11657): Error: found uint32_t when expecting ) test.d(11657): Error: expression expected, not )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
C header:
dpp code what uses this macros:
Produced D code:
Compilation error:
The text was updated successfully, but these errors were encountered: