Fix deprecation warnings during interop indexer compilation
This commit is contained in:
committed by
SvyatoslavScherbina
parent
5ad0643154
commit
ed55fd1a44
+2
-2
@@ -140,7 +140,7 @@ internal fun CXTranslationUnit.ensureNoCompileErrors(): CXTranslationUnit {
|
||||
internal typealias CursorVisitor = (cursor: CValue<CXCursor>, parent: CValue<CXCursor>) -> CXChildVisitResult
|
||||
|
||||
internal fun visitChildren(parent: CValue<CXCursor>, visitor: CursorVisitor) {
|
||||
val visitorStableRef = StableObjPtr.create(visitor)
|
||||
val visitorStableRef = StableRef.create(visitor)
|
||||
try {
|
||||
val clientData = visitorStableRef.asCPointer()
|
||||
clang_visitChildren(parent, staticCFunction { cursorIt, parentIt, clientDataIt ->
|
||||
@@ -341,7 +341,7 @@ internal interface Indexer {
|
||||
}
|
||||
|
||||
internal fun indexTranslationUnit(index: CXIndex, translationUnit: CXTranslationUnit, options: Int, indexer: Indexer) {
|
||||
val indexerStableRef = StableObjPtr.create(indexer)
|
||||
val indexerStableRef = StableRef.create(indexer)
|
||||
try {
|
||||
val clientData = indexerStableRef.asCPointer()
|
||||
memScoped {
|
||||
|
||||
Reference in New Issue
Block a user