File tree Expand file tree Collapse file tree
glslang/MachineIndependent/preprocessor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -446,36 +446,13 @@ class TPpContext {
446446 static const int marker = -3 ;
447447 };
448448
449- class tStringifyLevelInput : public tInput {
450- int what;
451- tStringifyLevelInput (TPpContext* pp) : tInput(pp) { }
452- public:
453- static tStringifyLevelInput popMarker (TPpContext* pp)
454- {
455- tStringifyLevelInput sl (pp);
456- sl.what = POP ;
457- return sl;
458- }
459-
460- static tStringifyLevelInput pushMarker (TPpContext* pp)
461- {
462- tStringifyLevelInput sl (pp);
463- sl.what = PUSH ;
464- return sl;
465- }
466-
467- int scan (TPpToken*) override
468- {
469- if (done)
470- return EndOfInput;
471- done = true ;
472-
473- return what;
474- }
475- virtual int getch () override { assert (0 ); return EndOfInput; }
476- virtual void ungetch () override { assert (0 ); }
477- static const int PUSH = -4 ;
478- static const int POP = -5 ;
449+ struct tStringifyLevelInput {
450+ // PUSH is a token atom indicating a new stringizing (#) level
451+ // during macro body expansion.
452+ static constexpr int PUSH = -4 ;
453+ // PUSH is a token atom indicating the end of a stringizing level
454+ // during macro body expansion.
455+ static constexpr int POP = -5 ;
479456 };
480457
481458 class tZeroInput : public tInput {
You can’t perform that action at this time.
0 commit comments