| 234 | } |
| 235 | |
| 236 | inline void CommonArgDim( ASTNode* call, int& width, int& height ) |
| 237 | { |
| 238 | width = call->GetChild( 0 )->GetType().width; |
| 239 | height = call->GetChild( 0 )->GetType().height; |
| 240 | for( unsigned i = 1; i < call->GetChildrenCount(); ++i ) |
| 241 | { |
| 242 | if( call->GetChild( i )->GetType().width > 1 || call->GetChild( i )->GetType().height > 1 ) |
| 243 | { |
| 244 | width = std::min( call->GetChild( i )->GetType().width, width ); |
| 245 | height = std::min( call->GetChild( i )->GetType().height, height ); |
| 246 | } |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | typedef int ( *TypeComponent )( ASTNode* call ); |
| 251 | typedef void ( *DimComponent )( ASTNode* call, int& width, int& height ); |
nothing calls this directly
no test coverage detected