Interop: extract constants defined as (preprocessor) macros
Support all macros extending to integer and floating-point constant expressions. Also do some refactoring.
This commit is contained in:
committed by
SvyatoslavScherbina
parent
01dd86d3b5
commit
f8d54fc8f7
@@ -177,7 +177,7 @@ class CString private constructor(override val rawPtr: NativePtr) : CPointed {
|
||||
return decodeFromUtf8(bytes) // TODO: encoding
|
||||
}
|
||||
|
||||
fun asCharPtr() = reinterpret<CInt8Var>()
|
||||
fun asCharPtr() = reinterpret<CInt8Var>().ptr
|
||||
}
|
||||
|
||||
fun CString.Companion.fromString(str: String?, placement: NativePlacement): CString? {
|
||||
|
||||
Reference in New Issue
Block a user