diff core/src/luan/modules/BasicLuan.java @ 233:ef39bc4d3f70

basic lucene works git-svn-id: https://luan-java.googlecode.com/svn/trunk@234 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 02 Oct 2014 02:58:55 +0000
parents ec016471c6eb
children 1fada5587469
line wrap: on
line diff
--- a/core/src/luan/modules/BasicLuan.java	Wed Oct 01 06:55:14 2014 +0000
+++ b/core/src/luan/modules/BasicLuan.java	Thu Oct 02 02:58:55 2014 +0000
@@ -30,6 +30,7 @@
 				add( module, "assert_number", LuanState.class, Number.class );
 				add( module, "assert_string", LuanState.class, String.class );
 				add( module, "assert_table", LuanState.class, LuanTable.class );
+				add( module, "assert_integer", LuanState.class, Integer.TYPE );
 				add( module, "do_file", LuanState.class, String.class );
 				add( module, "error", LuanState.class, Object.class );
 				add( module, "get_metatable", LuanState.class, Object.class );
@@ -194,6 +195,10 @@
 		return v;
 	}
 
+	public static int assert_integer(LuanState luan,int v) throws LuanException {
+		return v;
+	}
+
 	public static String repr(LuanState luan,Object v) throws LuanException {
 		return luan.repr(v);
 	}