mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-24 05:49:48 +00:00
17 lines
347 B
C++
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);
|
|
} |