MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / RRTransDestroy

Function RRTransDestroy

server/testplugin.cpp:233–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231
232
233int RRTransDestroy(void *handle)
234{
235 _vgl_disableFaker();
236
237 int ret = 0;
238 try
239 {
240 VGLTrans *vglconn = (VGLTrans *)handle;
241 if(!vglconn) THROW("Invalid handle");
242 delete vglconn;
243 }
244 catch(std::exception &e)
245 {
246 snprintf(errStr, MAXSTR + 14, "Error in %s -- %s", GET_METHOD(e),
247 e.what());
248 ret = -1;
249 }
250
251 _vgl_enableFaker();
252
253 return ret;
254}
255
256
257const char *RRTransGetError(void)

Callers

nothing calls this directly

Calls 3

whatMethod · 0.80
_vgl_disableFakerFunction · 0.70
_vgl_enableFakerFunction · 0.70

Tested by

no test coverage detected