8000 Parsing pragmas in CIL · Issue #22 · cil-project/cil · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Parsing pragmas in CIL #22

New issue

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

Open
zumpchke opened this issue Sep 1, 2015 · 0 comments
Open

Parsing pragmas in CIL #22

zumpchke opened this issue Sep 1, 2015 · 0 comments

Comments

@zumpchke
Copy link
zumpchke commented Sep 1, 2015

I'm trying to pass down some information from a C source file prior to the file being preprocessed. I decide to use the #pragma syntax to achieve this

(Unfortunately), there are some constructs which result in a ParseError. For example:

#pragma __test__("blah")
void my_fn_defn(void *ptr)
#pragma __test__("foo")
{
...
}

Why does this fail, isn't the pragma still at the "toplevel"? I.e The scope of the function hasn't started yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0