comparison src/luan/interp/Block.java @ 23:2446c1755d9b

minor git-svn-id: https://luan-java.googlecode.com/svn/trunk@24 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 06 Dec 2012 00:35:13 +0000
parents c93d8c781853
children 5cf15507d77e
comparison
equal deleted inserted replaced
22:1e37f22a34c8 23:2446c1755d9b
8 final Stmt[] stmts; 8 final Stmt[] stmts;
9 private final int stackStart; 9 private final int stackStart;
10 private final int stackEnd; 10 private final int stackEnd;
11 11
12 Block(Stmt[] stmts,int stackStart,int stackEnd) { 12 Block(Stmt[] stmts,int stackStart,int stackEnd) {
13 if( stmts.length==0 )
14 throw new RuntimeException("empty block");
13 this.stmts = stmts; 15 this.stmts = stmts;
14 this.stackStart = stackStart; 16 this.stackStart = stackStart;
15 this.stackEnd = stackEnd; 17 this.stackEnd = stackEnd;
16 } 18 }
17 19