Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1003155 // quickLua

JavaX fragment (include)

1  
lib 1004739 // aibo8.jar with Lua UTF8 fix
2  
3  
import net.luaos.tb.tb12.Sandbox;
4  
import net.luaos.tb.common.LuaTimeOutSandbox;
5  
import net.luaos.tb.remote.ServerConnection;
6  
7  
static LuaTimeOutSandbox.ResultWithStats quickLua(S code) {
8  
  ret quickLua(luaSandbox(), code);
9  
}
10  
11  
static LuaTimeOutSandbox.ResultWithStats quickLua(Sandbox sandbox, S code) {
12  
  ret sandbox.callLuaWithStats(code, "unknown source");
13  
}

Author comment

Began life as a copy of #1003154

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: #1003155
Snippet name: quickLua
Eternal ID of this version: #1003155/1
Text MD5: c029e2fd724c3e12f6196268c3964a00
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:18:32
Source code size: 415 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 591 / 592
Referenced in: [show references]