================ idTypeDef::AddFunctionParm Adds a new parameter for a function type. ================ */
| 299 | ================ |
| 300 | */ |
| 301 | void idTypeDef::AddFunctionParm( idTypeDef *parmtype, const char *name ) { |
| 302 | if ( type != ev_function ) { |
| 303 | throw idCompileError( "idTypeDef::AddFunctionParm : tried to add parameter on non-function type" ); |
| 304 | } |
| 305 | |
| 306 | parmTypes.Append( parmtype ); |
| 307 | idStr &parmName = parmNames.Alloc(); |
| 308 | parmName = name; |
| 309 | } |
| 310 | |
| 311 | /* |
| 312 | ================ |
no test coverage detected