comparison core/src/luan/modules/BasicLuan.java @ 443:bf5e62a9090c

remove toBoolean() and to_boolean()
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 04 May 2015 14:55:51 -0600
parents 75ccb4da803f
children e45bcaf6f5fe
comparison
equal deleted inserted replaced
442:75ccb4da803f 443:bf5e62a9090c
109 109
110 public static String to_string(LuanState luan,Object v) throws LuanException { 110 public static String to_string(LuanState luan,Object v) throws LuanException {
111 return luan.toString(v); 111 return luan.toString(v);
112 } 112 }
113 113
114 public static boolean to_boolean(Object v) throws LuanException {
115 return Luan.toBoolean(v);
116 }
117
118 public static void error(LuanState luan,Object msg) throws LuanException { 114 public static void error(LuanState luan,Object msg) throws LuanException {
119 throw luan.exception(msg); 115 throw luan.exception(msg);
120 } 116 }
121 117
122 public static String assert_string(LuanState luan,String v) throws LuanException { 118 public static String assert_string(LuanState luan,String v) throws LuanException {