diff core/src/luan/modules/BasicLuan.java @ 442:75ccb4da803f

move assert() implementation to luan
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 04 May 2015 13:49:12 -0600
parents d9df6d6cb927
children bf5e62a9090c
line wrap: on
line diff
--- a/core/src/luan/modules/BasicLuan.java	Mon May 04 13:36:55 2015 -0600
+++ b/core/src/luan/modules/BasicLuan.java	Mon May 04 13:49:12 2015 -0600
@@ -119,14 +119,6 @@
 		throw luan.exception(msg);
 	}
 
-	public static Object assert_(LuanState luan,Object v,String msg) throws LuanException {
-		if( Luan.toBoolean(v) )
-			return v;
-		if( msg == null )
-			msg = "assertion failed!";
-		throw luan.exception( msg );
-	}
-
 	public static String assert_string(LuanState luan,String v) throws LuanException {
 		Utils.checkNotNull(luan,v);
 		return v;