Skip to content

Commit 35d2f46

Browse files
committed
Add default impls for ContinuationFrame's depth and subIotas to reduce addon breakage
1 parent 6c5798b commit 35d2f46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Common/src/main/java/at/petrak/hexcasting/api/casting/eval/vm/ContinuationFrame.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ interface ContinuationFrame {
4646
* Return the number of iotas contained inside this frame, used for determining whether it is valid to serialise.
4747
*/
4848
fun size(): Int
49-
fun depth(): Int
50-
fun subIotas(): Iterable<Iota>?
49+
fun depth(): Int = 0
50+
fun subIotas(): Iterable<Iota>? = null
5151

5252
val type: Type<*>
5353

0 commit comments

Comments
 (0)