CppSharp icon indicating copy to clipboard operation
CppSharp copied to clipboard

Dublicated identifier in enum binding.

Open MEikermann opened this issue 9 years ago • 2 comments

Brief Description

For enums with definitions like NAME_A = 10 and NAME__A = 20, CppSharp will change the latter definition to NAME_A. The generated CSharp binding will then fail to compile since NAME_A is redefined.

OS: Windows / OS X / Linux (include version and/or distro)

Used headers
Used settings

Target: MSVC

Other settings Current Nuget package in a VS2017 project.

Stack trace or incompilable generated code

MEikermann avatar Sep 26 '17 14:09 MEikermann

@ddobrev Any help on where to start? I've gone through the generatingbindings.md and developers manual.

vamsibulusu avatar Feb 08 '18 20:02 vamsibulusu

@vamsibulusu first add a test to our suite in order to reproduce the problem. Then you can start debugging from our generator.

ddobrev avatar Feb 08 '18 20:02 ddobrev