lua-users home
lua-l archive

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


> Further to trying to avoid changes to Lua source modules, I have created
> the following macros for Lua 5.1.

> #ifndef LUAI_REALLOC
> #define LUAI_REALLOC(p,n) realloc((p),(n))
> #endif

The point being made by me and Roberto is that you could simply do this in
luaconf.h:

#define realloc myrealloc

Lua header files are included after system files precisely to allow this.
Or are we missing someting?
--lhf