3rdparty/bgfx/3rdparty/glslang/glslang/MachineIndependent/preprocessor/PpTokens.cpp
// See if the next non-white-space tokens are two consecutive #
See if the next non-white-space tokens are two consecutive
See if the next non - white - space tokens are two consecutive
bool TPpContext::TokenStream::peekUntokenizedPasting()
{
    size_t savePos = current;
    int subtoken;
    do {
        subtoken = getSubtoken();
    } while (subtoken == ' ');
    bool pasting = false;
    if (subtoken == '#') {
        subtoken = getSubtoken();
        if (subtoken == '#')
            pasting = true;
    }
    current = savePos;
    return pasting;
}
bool TPpContext :: TokenStream :: peekUntokenizedPasting ( ) { size_t savePos = current ; int subtoken ; do { subtoken = getSubtoken ( ) ; } while ( subtoken == ' ' ) ; bool pasting = false ; if ( subtoken == ' ' ) { subtoken = getSubtoken ( ) ; if ( subtoken == ' ' ) pasting = true ; } current = savePos ; return pasting ; }
See if the next non-white-space tokens are two consecutive
See if the next non - white - space tokens are two consecutive
// don't return early, have to restore this // skip white-space // check for ##