Skip to content

Commit

Permalink
core: update internal Context 'ownedContext' in JS & JVM to throw an …
Browse files Browse the repository at this point in the history
…error if referenced
  • Loading branch information
LeHaine committed Jul 1, 2024
1 parent 6b1bdc5 commit 707f8cd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions core/src/jsMain/kotlin/com/littlekt/ContextExt.js.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,40 @@ import com.littlekt.util.Clipboard
internal actual var ownedContext: Context =
object : Context() {
override val stats: AppStats
get() = TODO("fucked")
get() = error("Internal Context that shouldn't ever be referenced!")

override val configuration: ContextConfiguration
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val graphics: Graphics
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val input: Input
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val logger: Logger
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val vfs: Vfs
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val resourcesVfs: VfsFile
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val storageVfs: VfsFile
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val platform: Platform
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val clipboard: Clipboard
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override fun start(build: (app: Context) -> ContextListener) {
TODO("Not yet implemented")
error("Internal Context that shouldn't ever be referenced!")
}

override fun close() {
TODO("Not yet implemented")
error("Internal Context that shouldn't ever be referenced!")
}
}
24 changes: 12 additions & 12 deletions core/src/jvmMain/kotlin/com/littlekt/ContextExt.jvm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,40 @@ import com.littlekt.util.Clipboard
internal actual var ownedContext: Context =
object : Context() {
override val stats: AppStats
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val configuration: ContextConfiguration
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val graphics: Graphics
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val input: Input
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val logger: Logger
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val vfs: Vfs
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val resourcesVfs: VfsFile
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val storageVfs: VfsFile
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val platform: Platform
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override val clipboard: Clipboard
get() = TODO("Not yet implemented")
get() = error("Internal Context that shouldn't ever be referenced!")

override fun start(build: (app: Context) -> ContextListener) {
TODO("Not yet implemented")
error("Internal Context that shouldn't ever be referenced!")
}

override fun close() {
TODO("Not yet implemented")
error("Internal Context that shouldn't ever be referenced!")
}
}

0 comments on commit 707f8cd

Please sign in to comment.