1 | import net.luaos.tb.tb12.Sandbox; |
2 | import net.luaos.tb.remote.ServerConnection; |
3 | import org.luaj.vm2.*; |
4 | import org.luaj.vm2.lib.*; |
5 | |
6 | static Sandbox luaSandbox(O... outer) { |
7 | Sandbox s = new Sandbox(ServerConnection.aServerConnection()); |
8 | for (int i = 0; i+1 < l(outer); i += 2) |
9 | s.setOuter((S) outer[i], (LuaValue) outer[i+1]); |
10 | ret s; |
11 | } |
Began life as a copy of #1003155
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003156 |
Snippet name: | luaSandbox |
Eternal ID of this version: | #1003156/1 |
Text MD5: | f9e6450838bc9caa3c54094320d4305b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-28 16:17:28 |
Source code size: | 352 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 650 / 650 |
Referenced in: | [show references] |