| 792 | |
| 793 | |
| 794 | ILboolean ILAPIENTRY ilIsValidL(ILenum Type, void *Lump, ILuint Size) |
| 795 | { |
| 796 | if (Lump == NULL) { |
| 797 | ilSetError(IL_INVALID_PARAM); |
| 798 | return IL_FALSE; |
| 799 | } |
| 800 | |
| 801 | switch (Type) |
| 802 | { |
| 803 | #ifndef IL_NO_TGA |
| 804 | case IL_TGA: |
| 805 | return ilIsValidTgaL(Lump, Size); |
| 806 | #endif |
| 807 | |
| 808 | #ifndef IL_NO_JPG |
| 809 | case IL_JPG: |
| 810 | return ilIsValidJpegL(Lump, Size); |
| 811 | #endif |
| 812 | |
| 813 | #ifndef IL_NO_DDS |
| 814 | case IL_DDS: |
| 815 | return ilIsValidDdsL(Lump, Size); |
| 816 | #endif |
| 817 | |
| 818 | #ifndef IL_NO_PNG |
| 819 | case IL_PNG: |
| 820 | return ilIsValidPngL(Lump, Size); |
| 821 | #endif |
| 822 | |
| 823 | #ifndef IL_NO_BMP |
| 824 | case IL_BMP: |
| 825 | return ilIsValidBmpL(Lump, Size); |
| 826 | #endif |
| 827 | |
| 828 | #ifndef IL_NO_DICOM |
| 829 | case IL_DICOM: |
| 830 | return ilIsValidDicomL(Lump, Size); |
| 831 | #endif |
| 832 | |
| 833 | #ifndef IL_NO_EXR |
| 834 | case IL_EXR: |
| 835 | return ilIsValidExrL(Lump, Size); |
| 836 | #endif |
| 837 | |
| 838 | #ifndef IL_NO_GIF |
| 839 | case IL_GIF: |
| 840 | return ilIsValidGifL(Lump, Size); |
| 841 | #endif |
| 842 | |
| 843 | #ifndef IL_NO_HDR |
| 844 | case IL_HDR: |
| 845 | return ilIsValidHdrL(Lump, Size); |
| 846 | #endif |
| 847 | |
| 848 | #ifndef IL_NO_ICNS |
| 849 | case IL_ICNS: |
| 850 | return ilIsValidIcnsL(Lump, Size); |
| 851 | #endif |
nothing calls this directly
no test coverage detected