MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / init

Function init

src/CustomEvents.cpp:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35bool alreadyInitialized = false;
36
37void init() {
38 if(!alreadyInitialized) {
39 PasteEvent::EVENT_NUM = SDL_RegisterEvents(1);
40 OpenInfiniPaintFileEvent::EVENT_NUM = SDL_RegisterEvents(1);
41 AddFileToCanvasEvent::EVENT_NUM = SDL_RegisterEvents(1);
42 RefreshTextBoxInputEvent::EVENT_NUM = SDL_RegisterEvents(1);
43 AndroidTextBoxInputEvent::EVENT_NUM = SDL_RegisterEvents(1);
44 MobileImportCanvasEvent::EVENT_NUM = SDL_RegisterEvents(1);
45 alreadyInitialized = true;
46 }
47}
48
49uint32_t PasteEvent::EVENT_NUM;
50uint32_t OpenInfiniPaintFileEvent::EVENT_NUM;

Callers 15

SDL_AppInitFunction · 0.85
memory_poolMethod · 0.85
clearMethod · 0.85
UmfPackLUMethod · 0.85
PastixBaseMethod · 0.85
PastixLUMethod · 0.85
PastixLLTMethod · 0.85
PastixLDLTMethod · 0.85
SuperLUMethod · 0.85
initMethod · 0.85
SuperILUMethod · 0.85
initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected