Mercurial Hosting > luan
comparison src/luan/Luan.java @ 1580:2975c932864d
require options
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 10 Feb 2021 23:56:59 -0700 |
parents | c922446f53aa |
children | bce893009f90 |
comparison
equal
deleted
inserted
replaced
1579:dd881eb03d87 | 1580:2975c932864d |
---|---|
156 public Object eval(String cmd,Object... args) throws LuanException { | 156 public Object eval(String cmd,Object... args) throws LuanException { |
157 return load(cmd,"eval",false).call(this,args); | 157 return load(cmd,"eval",false).call(this,args); |
158 } | 158 } |
159 | 159 |
160 public Object require(String modName) throws LuanException { | 160 public Object require(String modName) throws LuanException { |
161 return PackageLuan.require(this,modName); | 161 return require(modName,null); |
162 } | |
163 | |
164 public Object require(String modName,LuanTable options) throws LuanException { | |
165 return PackageLuan.require(this,modName,options); | |
162 } | 166 } |
163 | 167 |
164 public String luanToString(Object obj) throws LuanException { | 168 public String luanToString(Object obj) throws LuanException { |
165 if( obj instanceof LuanTable ) { | 169 if( obj instanceof LuanTable ) { |
166 LuanTable tbl = (LuanTable)obj; | 170 LuanTable tbl = (LuanTable)obj; |