diff core/src/luan/modules/Utils.java @ 582:31926755689e

add Thread.synchronized
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 31 Jul 2015 06:20:17 -0600
parents 60c549d43988
children 6ea90dc10375
line wrap: on
line diff
--- a/core/src/luan/modules/Utils.java	Thu Jul 30 20:56:53 2015 -0600
+++ b/core/src/luan/modules/Utils.java	Fri Jul 31 06:20:17 2015 -0600
@@ -11,6 +11,7 @@
 import luan.LuanState;
 import luan.LuanException;
 import luan.LuanTable;
+import luan.LuanFunction;
 
 
 public final class Utils {
@@ -39,6 +40,10 @@
 		checkNotNull(luan,n,"number");
 	}
 
+	public static void checkNotNull(LuanState luan,LuanFunction fn) throws LuanException {
+		checkNotNull(luan,fn,"function");
+	}
+
 	public static String readAll(Reader in)
 		throws IOException
 	{