Mercurial Hosting > luan
comparison core/src/luan/modules/Utils.java @ 305:5e7450ac27f2
rename String.byte() to String.unicode();
improve Binary;
git-svn-id: https://luan-java.googlecode.com/svn/trunk@306 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 19 Dec 2014 07:50:46 +0000 |
parents | f1f7d8c7e94e |
children | 60c549d43988 |
comparison
equal
deleted
inserted
replaced
304:03e9cda4748d | 305:5e7450ac27f2 |
---|---|
23 throw luan.exception("bad argument #1 ("+expected+" expected, got nil)"); | 23 throw luan.exception("bad argument #1 ("+expected+" expected, got nil)"); |
24 } | 24 } |
25 | 25 |
26 public static void checkNotNull(LuanState luan,String s) throws LuanException { | 26 public static void checkNotNull(LuanState luan,String s) throws LuanException { |
27 checkNotNull(luan,s,"string"); | 27 checkNotNull(luan,s,"string"); |
28 } | |
29 | |
30 public static void checkNotNull(LuanState luan,byte[] b) throws LuanException { | |
31 checkNotNull(luan,b,"binary"); | |
28 } | 32 } |
29 | 33 |
30 public static void checkNotNull(LuanState luan,LuanTable t) throws LuanException { | 34 public static void checkNotNull(LuanState luan,LuanTable t) throws LuanException { |
31 checkNotNull(luan,t,"table"); | 35 checkNotNull(luan,t,"table"); |
32 } | 36 } |