MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / trimNullTerminator

Function trimNullTerminator

pj_scene3D/widgets/src/gl/program.cpp:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace {
16
17std::string trimNullTerminator(std::string log) {
18 while (!log.empty() && log.back() == '\0') {
19 log.pop_back();
20 }
21 return log;
22}
23
24template <typename Functions>
25std::string shaderInfoLog(Functions& functions, GLuint shader) {

Callers 2

shaderInfoLogFunction · 0.85
programInfoLogFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected