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
#define FOO(X) (int) X
I see
+DeclMacro MacroDecl { macroDeclMacro = Macro { macroLoc = MultiLoc { multiLocExpansion = "macro_functions.h:16:9", multiLocPresumed = Nothing, multiLocSpelling = Nothing, multiLocFile = Nothing}, macroName = CName "FOO", macroArgs = [CName "X"], macroBody = MTerm (MType (TypePrim (PrimIntegral PrimInt Signed)))}, macroDeclMacroTy = "(forall a. (a -> PrimTy))",
in test output. The body is incorrect, I assume parser goes wrong.
The text was updated successfully, but these errors were encountered:
Note that
#define FOO(X) ((int) X)
with extra parentheses does
+DeclMacro MacroTcError { macroTcErrorMacro = Macro { macroLoc = MultiLoc { multiLocExpansion = "macro_functions.h:16:9", multiLocPresumed = Nothing, multiLocSpelling = Nothing, multiLocFile = Nothing}, macroName = CName "FOO", macroArgs = [], macroBody = MTerm (MVar (CName "X") [])}, macroTcError = T.concat [ "Failed to typecheck macro:\n", "Unbound variable: 'X'\n"]}])
which is different, but also wrong.
Sorry, something went wrong.
I think we should just fail to parse both of these examples; they don't need to be supported.
No branches or pull requests
I see
in test output. The body is incorrect, I assume parser goes wrong.
The text was updated successfully, but these errors were encountered: