feat: comment magic
This commit is contained in:
parent
8c1556c270
commit
c2d87a610e
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user