Mercurial Hosting > luan
comparison src/luan/lib/Utils.java @ 116:1ff1c32417eb
more IoLib work and added init.luan
git-svn-id: https://luan-java.googlecode.com/svn/trunk@117 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 30 May 2014 04:55:37 +0000 |
parents | eacf6ce1b47d |
children | 0cd559a16758 |
comparison
equal
deleted
inserted
replaced
115:eacf6ce1b47d | 116:1ff1c32417eb |
---|---|
20 | 20 |
21 | 21 |
22 public final class Utils { | 22 public final class Utils { |
23 private Utils() {} // never | 23 private Utils() {} // never |
24 | 24 |
25 private static final int bufSize = 8192; | 25 static final int bufSize = 8192; |
26 | 26 |
27 public static void checkNotNull(LuanState luan,Object v,String expected) throws LuanException { | 27 public static void checkNotNull(LuanState luan,Object v,String expected) throws LuanException { |
28 if( v == null ) | 28 if( v == null ) |
29 throw luan.JAVA.exception("bad argument #1 ("+expected+" expected, got nil)"); | 29 throw luan.JAVA.exception("bad argument #1 ("+expected+" expected, got nil)"); |
30 } | 30 } |