MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / error

Method error

src/main/java/field/graphics/Windows.java:103–118  ·  view source on GitHub ↗
(int error, String description)

Source from the content-addressed store, hash-verified

101 @Override
102 public void error(int error, String description) {
103 System.err.println(" ERROR in GLFW windowing system :" + error + " / " + description);
104 Runnable r = () -> {
105 checkClassLoader();
106 System.err.println(" ERROR in GLFW windowing system :" + error + " / " + description);
107 new Exception().printStackTrace();
108 };
109
110 if (checkThread()) r.run();
111 else {
112 events.addLast(r);
113 RunLoop.main.shouldSleep.add(Windows.this);
114 RunLoop.main.interrupt();
115 }
116 }
117
118 @Override
119 public void windowFocus(long window, boolean focused) {
120 Runnable r = () -> {
121 checkClassLoader();

Callers 1

registerMethod · 0.45

Calls 6

checkClassLoaderMethod · 0.95
checkThreadMethod · 0.95
interruptMethod · 0.80
printlnMethod · 0.45
runMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected