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)

static ThreadLocal<Bool> gCompleting;

static bool gCompleting() {
  gCompleting_init();
  Bool b = gCompleting.get();
  /*if (b == null)
    b = (Bool) callOpt(creator(), "gCompleting");*/
  ret isTrue(b);
}

static void gCompleting_set(Bool b) {
  gCompleting_init();
  gCompleting.set(b);
}

static void gCompleting_init() {
  if (gCompleting == null) {
    gCompleting = (ThreadLocal) getOpt(creator(), "gCompleting");
    if (gCompleting == null) gCompleting = new ThreadLocal;
  }
}

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: 545 / 547
Referenced in: [show references]