============ idVarDef::SetString ============ */
| 727 | ============ |
| 728 | */ |
| 729 | void idVarDef::SetString( const char *string, bool constant ) { |
| 730 | if ( constant ) { |
| 731 | initialized = initializedConstant; |
| 732 | } else { |
| 733 | initialized = initializedVariable; |
| 734 | } |
| 735 | |
| 736 | assert( typeDef && ( typeDef->Type() == ev_string ) ); |
| 737 | idStr::Copynz( value.stringPtr, string, MAX_STRING_LEN ); |
| 738 | } |
| 739 | |
| 740 | /* |
| 741 | ============ |
no test coverage detected