Mercurial Hosting > luan
comparison core/src/luan/modules/BasicLuan.java @ 290:9a0cc6d9b27b
add Time.period();
add assert_long();
git-svn-id: https://luan-java.googlecode.com/svn/trunk@291 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Tue, 09 Dec 2014 04:39:18 +0000 |
parents | 454a486d9c19 |
children | 7ea6dfdf81ba |
comparison
equal
deleted
inserted
replaced
289:ae7ae2755b48 | 290:9a0cc6d9b27b |
---|---|
29 add( module, "assert_nil", LuanState.class, Object.class ); | 29 add( module, "assert_nil", LuanState.class, Object.class ); |
30 add( module, "assert_number", LuanState.class, Number.class ); | 30 add( module, "assert_number", LuanState.class, Number.class ); |
31 add( module, "assert_string", LuanState.class, String.class ); | 31 add( module, "assert_string", LuanState.class, String.class ); |
32 add( module, "assert_table", LuanState.class, LuanTable.class ); | 32 add( module, "assert_table", LuanState.class, LuanTable.class ); |
33 add( module, "assert_integer", LuanState.class, Integer.TYPE ); | 33 add( module, "assert_integer", LuanState.class, Integer.TYPE ); |
34 add( module, "assert_long", LuanState.class, Long.TYPE ); | |
34 add( module, "do_file", LuanState.class, String.class ); | 35 add( module, "do_file", LuanState.class, String.class ); |
35 add( module, "error", LuanState.class, Object.class ); | 36 add( module, "error", LuanState.class, Object.class ); |
36 add( module, "get_metatable", LuanState.class, Object.class ); | 37 add( module, "get_metatable", LuanState.class, Object.class ); |
37 add( module, "ipairs", LuanState.class, LuanTable.class ); | 38 add( module, "ipairs", LuanState.class, LuanTable.class ); |
38 add( module, "load", LuanState.class, String.class, String.class, LuanTable.class, Boolean.class ); | 39 add( module, "load", LuanState.class, String.class, String.class, LuanTable.class, Boolean.class ); |
202 | 203 |
203 public static int assert_integer(LuanState luan,int v) throws LuanException { | 204 public static int assert_integer(LuanState luan,int v) throws LuanException { |
204 return v; | 205 return v; |
205 } | 206 } |
206 | 207 |
208 public static long assert_long(LuanState luan,long v) throws LuanException { | |
209 return v; | |
210 } | |
211 | |
207 public static String repr(LuanState luan,Object v) throws LuanException { | 212 public static String repr(LuanState luan,Object v) throws LuanException { |
208 return luan.repr(v); | 213 return luan.repr(v); |
209 } | 214 } |
210 | 215 |
211 public static LuanFunction range(LuanState luan,final double from,final double to,Double stepV) throws LuanException { | 216 public static LuanFunction range(LuanState luan,final double from,final double to,Double stepV) throws LuanException { |