18.04.2013, 14:10
Very crafty. Nice!
I'd suggest you make it so each library could tell y_malloc how much memory it wants, then it'd be added up and "stolen" on startup.
That way each library could worry about its own, and get all the memory it wants.
I'd suggest you make it so each library could tell y_malloc how much memory it wants, then it'd be added up and "stolen" on startup.
That way each library could worry about its own, and get all the memory it wants.
pawn Код:
#define MALLOC_SPACE_WANTED 10485760
#include <ysi\y_malloc>
#define MALLOC_SPACE_WANTED (MAX_SOMETHING * 1024)
#include <ysi\y_malloc>