Skip to content

Same name for enum and struct compiler problem #15

@sebastianomelita

Description

@sebastianomelita

When i use the optional core async structure,

In file included from sketch.ino:4:
/sketch/async.h:80:8: error: using typedef-name 'async' after 'struct'
struct async { async_state; };

apparently is because

typedef enum ASYNC_EVT { ASYNC_INIT = 0, ASYNC_CONT = ASYNC_INIT, ASYNC_DONE = 1 } async;

and

struct async { async_state; };

have the same name async.

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