feat: comment magic

This commit is contained in:
Renge 2022-03-26 00:27:38 -04:00
parent 8c1556c270
commit c2d87a610e
2 changed files with 6 additions and 14 deletions

View File

@ -315,12 +315,12 @@ void *sf_mem_grow();
*/
sf_header sf_magic();
//#define MAGIC (sf_magic())
#ifndef WEAK_MAGIC
#define MAGIC (sf_magic())
#else
#define MAGIC ((sf_header)0x0)
#endif
#define MAGIC (sf_magic())
// #ifndef WEAK_MAGIC
// #define MAGIC (sf_magic())
// #else
// #define MAGIC ((sf_header)0x0)
// #endif
/*
* Set the "magic number" used to obfuscate header and footer contents.
* Setting the magic number to zero essentially turns off obfuscation, which will

View File

@ -3,13 +3,5 @@
int main(int argc, char const *argv[]) {
size_t sz_x = sizeof(int) * 20, sz_y = sizeof(int) * 16;
void *x = sf_malloc(sz_x);
sf_realloc(x, sz_y);
sf_show_heap();
return EXIT_SUCCESS;
}