YSI-Includes
YSI-Includes copied to clipboard
Compile tests
I was inspired after reading this:
https://github.com/Southclaws/sampctl/wiki/Modern-Pawn#entry-scripts
So I've added a TestCompile: feature to y_testing. It is just a function that ensures it is never called, but always exists (public) to put calls to all of a library's functions in to ensure they all compile. I've only done two libraries so far - this issue is for the rest:
TestCompile:y_cell()
{
new masks[5];
Cell_ReverseBits(0);
Cell_ReverseNibbles(0);
Cell_ReverseBytes(0);
Cell_CountBits(0);
Cell_GetLowestBit(0);
Cell_GetLowestBitEx(0);
Cell_CountBlanks(0);
Cell_GetLowestBlank(0);
Cell_GetLowestBlankEx(0);
Cell_GetLowestComponent(0);
Cell_GetLowestEmpty(0);
Cell_CompressRightPrecomputed(0, 0, masks);
Cell_ExpandLeftPrecomputed(0, 0, masks);
Cell_PrecomputeMaskPermutation(0);
Cell_CompressRight(0, 0);
Cell_ExpandLeft(0, 0);
}
Because the function is guaranteed to never be called (this is a static stock function "called" from a public if a false if is ever true), the calls can be gibberish, just as long as they exist.