| 9 | #include "Utils.h" |
| 10 | |
| 11 | void printShaderSource(const char* text) |
| 12 | { |
| 13 | int line = 1; |
| 14 | |
| 15 | printf("\n(%3i) ", line); |
| 16 | |
| 17 | while (text && *text++) |
| 18 | { |
| 19 | if (*text == '\n') |
| 20 | { |
| 21 | printf("\n(%3i) ", ++line); |
| 22 | } |
| 23 | else if (*text == '\r') |
| 24 | { |
| 25 | } |
| 26 | else |
| 27 | { |
| 28 | printf("%c", *text); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | printf("\n"); |
| 33 | } |
| 34 | |
| 35 | int endsWith(const char* s, const char* part) |
| 36 | { |
no outgoing calls
no test coverage detected