Fix minor cinterop bug with clashing macro and enum constant

This commit is contained in:
Svyatoslav Scherbina
2019-02-01 10:31:47 +03:00
committed by SvyatoslavScherbina
parent f9346f5d5c
commit 67b06b5f2a
2 changed files with 5 additions and 1 deletions
@@ -170,7 +170,7 @@ class StubGenerator(
val functionsToBind = nativeIndex.functions.filter { it.name !in excludedFunctions }
private val macroConstantsByName = nativeIndex.macroConstants.associateBy { it.name }
private val macroConstantsByName = (nativeIndex.macroConstants + nativeIndex.wrappedMacros).associateBy { it.name }
val kotlinFile = object : KotlinFile(pkgName, namesToBeDeclared = computeNamesToBeDeclared()) {
override val mappingBridgeGenerator: MappingBridgeGenerator