If I have a static cValue { ... } somewhere, how d...
# kotlin-native
m
If I have a static cValue { ... } somewhere, how do I get a pointer to that struct? Right now this is how I've solved it, but this does not seem intended
Copy code
private val scope = MemScope()  // Scope to create pointers to global objects

internal inline fun <T : CVariable> CValue<T>.asPointer(): CPointer<T> {
    return getPointer(scope)
}