Skip to content

Function with default parameter doesn't get it's prototype in *.h header file. #39

Closed
@ffissore

Description

@ffissore

From @obiwan-bartek on October 30, 2015 0:20

When you write a function with at least one parameter with default value
eg.

void foo(int a, int b = 0)
{
}

it does not gets generated it's prototype in header file, which results in an unreferenced calls in project to that function. When you remove the default parameter

 = 0

the prototype shows in header file as expected.

Copied from original issue: arduino/Arduino#4048

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions