| 212 | |
| 213 | template <int Arg> |
| 214 | void DimSameAsArg( ASTNode* call, int& width, int& height ) |
| 215 | { |
| 216 | ASTNode* arg0 = call->GetChildOrNull( Arg ); |
| 217 | if( arg0 == nullptr ) |
| 218 | { |
| 219 | width = 1; |
| 220 | height = 1; |
| 221 | } |
| 222 | else |
| 223 | { |
| 224 | width = arg0->GetType().width; |
| 225 | height = arg0->GetType().height; |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | template <int Width, int Height> |
| 230 | void DimIs( ASTNode*, int& width, int& height ) |
nothing calls this directly
no test coverage detected