MCPcopy Create free account
hub / github.com/cinder/Cinder / isTerminated

Function isTerminated

src/cinder/gl/ShaderPreprocessor.cpp:39–47  ·  view source on GitHub ↗

due to null or the rest of the line being a comment (//)

Source from the content-addressed store, hash-verified

37namespace {
38// due to null or the rest of the line being a comment (//)
39bool isTerminated( const char *c )
40{
41 if( *c == '\0' )
42 return true;
43 const char *next = c + 1;
44 if( *c == '/' && *next && *next == '/' )
45 return true;
46 return false;
47}
48
49bool isWhiteSpace( const char *c )
50{

Callers 3

consumeWhiteSpaceFunction · 0.85
findIncludeStatementFunction · 0.85
findVersionStatementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected