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
Given the following code:
#include <stdint.h> #define ARRAY_DEFINE_FUNCTIONS(typeName) \ typeName typeName##_DEFAULT = {0}; \ void Get() { \ (void)&typeName##_DEFAULT; \ } \ #define ARRAY_DEFINE(typeName) \ ARRAY_DEFINE_FUNCTIONS(typeName) \ ARRAY_DEFINE(uint32_t)
I get the following error:
clay.h: parsing failed: clay.h:12:1: `unsigned`: expected primary-expression
I traced the error to builtin.h. For some reason it loses the information about it being a builtin when passed through two defines.
Expected output:
var int_DEFAULT uint32 = uint32{} func Get() { _ = &int_DEFAULT }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given the following code:
I get the following error:
I traced the error to builtin.h. For some reason it loses the information about it being a builtin when passed through two defines.
Expected output:
The text was updated successfully, but these errors were encountered: