| 192 | } |
| 193 | |
| 194 | inline int CommonArgType( ASTNode* call ) |
| 195 | { |
| 196 | if( call->GetChildrenCount() == 0 ) |
| 197 | { |
| 198 | return OP_VOID; |
| 199 | } |
| 200 | int type = call->GetChild( 0 )->GetType().builtInType; |
| 201 | int prec = GetNumericTypePrecedence( type ); |
| 202 | for( unsigned i = 1; i < call->GetChildrenCount(); ++i ) |
| 203 | { |
| 204 | int p1 = GetNumericTypePrecedence( call->GetChild( i )->GetType().builtInType ); |
| 205 | if( p1 > prec ) |
| 206 | { |
| 207 | type = call->GetChild( i )->GetType().builtInType; |
| 208 | } |
| 209 | } |
| 210 | return type; |
| 211 | } |
| 212 | |
| 213 | template <int Arg> |
| 214 | void DimSameAsArg( ASTNode* call, int& width, int& height ) |
nothing calls this directly
no test coverage detected