| 635 | } |
| 636 | |
| 637 | inline bool TokenWaiting( void ) |
| 638 | { |
| 639 | if ( m_ScriptStack.Count() <= 0 ) |
| 640 | { |
| 641 | Assert( 0 ); |
| 642 | return false; |
| 643 | } |
| 644 | |
| 645 | const char *p = m_ScriptStack[ 0 ].currenttoken; |
| 646 | |
| 647 | if ( !p ) |
| 648 | { |
| 649 | Error( "AI_ResponseSystem: Unxpected TokenWaiting() with NULL buffer in %p", m_ScriptStack[ 0 ].name ); |
| 650 | return false; |
| 651 | } |
| 652 | |
| 653 | |
| 654 | while ( *p && *p!='\n') |
| 655 | { |
| 656 | // Special handler for // comment blocks |
| 657 | if ( *p == '/' && *(p+1) == '/' ) |
| 658 | return false; |
| 659 | |
| 660 | if ( !isspace( *p ) || isalnum( *p ) ) |
| 661 | return true; |
| 662 | |
| 663 | p++; |
| 664 | } |
| 665 | |
| 666 | return false; |
| 667 | } |
| 668 | |
| 669 | void ParseOneResponse( const char *responseGroupName, ResponseGroup& group ); |
| 670 |
no test coverage detected