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

21
LINES

< > BotCompany Repo | #1003856 // gCompleting - are we in "completion" mode (complete user input)?

JavaX fragment (include)

1  
static ThreadLocal<Bool> gCompleting;
2  
3  
static bool gCompleting() {
4  
  gCompleting_init();
5  
  Bool b = gCompleting.get();
6  
  /*if (b == null)
7  
    b = (Bool) callOpt(creator(), "gCompleting");*/
8  
  ret isTrue(b);
9  
}
10  
11  
static void gCompleting_set(Bool b) {
12  
  gCompleting_init();
13  
  gCompleting.set(b);
14  
}
15  
16  
static void gCompleting_init() {
17  
  if (gCompleting == null) {
18  
    gCompleting = (ThreadLocal) getOpt(creator(), "gCompleting");
19  
    if (gCompleting == null) gCompleting = new ThreadLocal;
20  
  }
21  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003856
Snippet name: gCompleting - are we in "completion" mode (complete user input)?
Eternal ID of this version: #1003856/1
Text MD5: 56562e4d0b8a9d2e998ca0ee88e1f72d
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-04 02:30:03
Source code size: 508 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 495 / 494
Referenced in: [show references]