Forbid subclasses of NativePointed to have backing fields
(this crashes the compiler otherwise)
This commit is contained in:
committed by
Stanislav Erokhin
parent
2ce2565e8f
commit
d218b88106
@@ -0,0 +1,10 @@
|
||||
import kotlinx.cinterop.*
|
||||
|
||||
class Vertex constructor(rawPtr: NativePtr) : CStructVar(rawPtr) {
|
||||
var x: Float = 0f
|
||||
var y: Float = 0f
|
||||
var r: Float = 0f
|
||||
var g: Float = 0f
|
||||
var b: Float = 0f
|
||||
companion object : CStructVar.Type(40, 8)
|
||||
}
|
||||
Reference in New Issue
Block a user