Mercurial Hosting > luan
comparison core/src/luan/modules/BasicLuan.java @ 537:5fed3de0aac7
add Luan.assert_double and add assert_* to Web_search query env
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Mon, 01 Jun 2015 00:42:00 -0600 |
| parents | 3058870cbe83 |
| children | f1601a4ce1aa |
comparison
equal
deleted
inserted
replaced
| 536:3058870cbe83 | 537:5fed3de0aac7 |
|---|---|
| 137 | 137 |
| 138 public static long assert_long(LuanState luan,long v) throws LuanException { | 138 public static long assert_long(LuanState luan,long v) throws LuanException { |
| 139 return v; | 139 return v; |
| 140 } | 140 } |
| 141 | 141 |
| 142 public static double assert_double(LuanState luan,double v) throws LuanException { | |
| 143 return v; | |
| 144 } | |
| 145 | |
| 142 @LuanMethod public static byte[] assert_binary(LuanState luan,byte[] v) throws LuanException { | 146 @LuanMethod public static byte[] assert_binary(LuanState luan,byte[] v) throws LuanException { |
| 143 Utils.checkNotNull(luan,v); | 147 Utils.checkNotNull(luan,v); |
| 144 return v; | 148 return v; |
| 145 } | 149 } |
| 146 | 150 |
