Skip to content

Can´t parse rdkafka.h #2

Open
Open
@dirx

Description

@dirx

Parsing rdkafka.h gives PHP Warning: Only arrays and Traversables can be unpacked in /app/vendor/ircmaxell/php-c-parser/lib/Context.php on line 140:

return $this->evaluate(...$this->definitions[$expr->value]);

You may replay this with:

--TEST--
Test  bug
--FILE--

#ifndef TEST
#define TEST 1
#endif

#if TEST
int bar;
#endif

--EXPECT--
int bar;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions