Mercurial Hosting > luan
comparison src/luan/modules/BasicLuan.java @ 1257:e38f5869e9df
don't reset in send_redirect and other improvements
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 20 Sep 2018 21:04:41 -0600 |
parents | bae51e2d34c9 |
children | 9fa8b8389578 |
comparison
equal
deleted
inserted
replaced
1256:c147e2e877e3 | 1257:e38f5869e9df |
---|---|
113 LuanTable tbl = new LuanException(s).table(); | 113 LuanTable tbl = new LuanException(s).table(); |
114 tbl.rawPut( "message", msg ); | 114 tbl.rawPut( "message", msg ); |
115 return tbl; | 115 return tbl; |
116 } | 116 } |
117 | 117 |
118 public static int assert_integer(int v) throws LuanException { | 118 public static int assert_integer(int v) { |
119 return v; | 119 return v; |
120 } | 120 } |
121 | 121 |
122 public static long assert_long(long v) throws LuanException { | 122 public static long assert_long(long v) { |
123 return v; | 123 return v; |
124 } | 124 } |
125 | 125 |
126 public static double assert_double(double v) throws LuanException { | 126 public static double assert_double(double v) { |
127 return v; | 127 return v; |
128 } | 128 } |
129 | 129 |
130 public static float assert_float(float v) throws LuanException { | 130 public static float assert_float(float v) { |
131 return v; | 131 return v; |
132 } | 132 } |
133 | 133 |
134 public static LuanFunction range(final double from,final double to,Double stepV) throws LuanException { | 134 public static LuanFunction range(final double from,final double to,Double stepV) throws LuanException { |
135 final double step = stepV==null ? 1.0 : stepV; | 135 final double step = stepV==null ? 1.0 : stepV; |