Mercurial Hosting > luan
diff core/src/luan/modules/BasicLuan.java @ 626:53a50c70c5e2
add Luan.assert_function() and Http.run_later()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 17 Jan 2016 06:19:46 -0700 |
parents | 97c8ae330efe |
children | 859c0dedc8b6 |
line wrap: on
line diff
--- a/core/src/luan/modules/BasicLuan.java Tue Jan 12 23:52:56 2016 -0700 +++ b/core/src/luan/modules/BasicLuan.java Sun Jan 17 06:19:46 2016 -0700 @@ -157,6 +157,11 @@ return v; } + public static LuanFunction assert_function(LuanState luan,LuanFunction v) throws LuanException { + Utils.checkNotNull(luan,v); + return v; + } + public static LuanFunction range(LuanState luan,final double from,final double to,Double stepV) throws LuanException { final double step = stepV==null ? 1.0 : stepV; if( step == 0.0 )