MCPcopy Create free account
hub / github.com/defold/defold / PollEventToNative

Function PollEventToNative

engine/dlib/src/dlib/file_descriptor_win32.cpp:21–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace dmFileDescriptor
20{
21 int PollEventToNative(PollEvent event)
22 {
23 switch (event)
24 {
25 case EVENT_READ:
26 return POLLRDNORM;
27 case EVENT_WRITE:
28 return POLLWRNORM;
29 case EVENT_ERROR:
30 return POLLRDBAND;
31 default:
32 assert(false);
33 return -1;
34 }
35 return -1; // silence warning
36 }
37 int PollReturnEventToNative(PollEvent event)
38 {
39 switch (event)

Callers 2

PollerClearEventFunction · 0.70
PollerSetEventFunction · 0.70

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected