MCPcopy Create free account
hub / github.com/carbonengine/trinity / yyStackOverflow

Function yyStackOverflow

shadercompiler/lempar.c:605–621  ·  view source on GitHub ↗

** The following routine is called if the stack overflows. */

Source from the content-addressed store, hash-verified

603** The following routine is called if the stack overflows.
604*/
605static void yyStackOverflow(yyParser *yypParser){
606 ParseARG_FETCH
607 ParseCTX_FETCH
608#ifndef NDEBUG
609 if( yyTraceFILE ){
610 fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
611 }
612#endif
613 while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
614 /* Here code is inserted which will execute if the parser
615 ** stack every overflows */
616/******** Begin %stack_overflow code ******************************************/
617%%
618/******** End %stack_overflow code ********************************************/
619 ParseARG_STORE /* Suppress warning about unused %extra_argument var */
620 ParseCTX_STORE
621}
622
623/*
624** Print tracing information for a SHIFT action

Callers 2

yy_shiftFunction · 0.70
yy_reduceFunction · 0.70

Calls 1

yy_pop_parser_stackFunction · 0.70

Tested by

no test coverage detected