spidey-decomp/validate.cpp
2024-03-03 17:47:50 +01:00

17 lines
347 B
C++

#include "validate.h"
void validate_class(int cur, int expected, const char *cls, const char *member){
if (expected != cur){
printf("[!] Expected %X but got %X, for %s->%s\n", expected, cur, cls, member);
}
else{
#ifdef _VALIDATE_SUCCESS
printf("Success: Expected %X for %s->%s\n", expected, cls, member);
#endif
}
fflush(stdout);
}