31.07.2011, 20:41
global data is stored in the binary file (the amx)
=> global data cant create such a warning
local variables are dynamically allocated and are saved in the heap (starts at 0)
Than if the stack (starts at the top) and the heap collides*І this warning appears
*І stack and heap uses the same memory block *і
*і usually 4096 cells big minus the header and some tables
=> around 4000 cells should work fine without collision / warning
=> global data cant create such a warning
pawn Код:
#define BUT_WONT_CASE_A_WARNING (cellmax)
stock I_WILL_TAKE_AGES_TO_COMPILE[BUT_WONT_CASE_A_WARNING];
#undef BUT_WONT_CASE_A_WARNING
Than if the stack (starts at the top) and the heap collides*І this warning appears
*І stack and heap uses the same memory block *і
*і usually 4096 cells big minus the header and some tables
=> around 4000 cells should work fine without collision / warning