lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

We've done this exact change ourselves and have had no adverse effects (I'm
sure many people on this list have made this change).  lmem.c has some very
convenient defines at the top of the file to accomodate this change.

Since our game is written in c++, we had to change lmem.c to lmem.cpp, which
ended up needing some compiling trickery to work properly.  If you need to
do this, let me know.


-----Original Message-----
From: Jim Mathies []
Sent: Friday, July 21, 2000 2:44 PM
To: Multiple recipients of list
Subject: memory allocation


I have a question about the memory allocation in
lmem.c.  Is it acceptable to replace malloc, realloc
and free with custom handlers?  Also, if the custom 
handlers include features like debug byte padding
surrounding allocated blocks, will Lua handle this

Jim Mathies

Y i n d o  I n c.
w w w . y i n d o . c o m
Jim Mathies -