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

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Parsing pragmas in CIL #22
Open
Open
@zumpchke

Description

@zumpchke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0