Add some sanity checks for allocator in 64 bit mode.

This commit is contained in:
Mike Pall
2010-01-18 01:32:33 +01:00
parent 32969abe40
commit 4e39597ba6
4 changed files with 8 additions and 1 deletions

View File

@@ -313,6 +313,10 @@ LUALIB_API int luaL_loadstring(lua_State *L, const char *s)
#ifdef LUAJIT_USE_SYSMALLOC
#if LJ_64
#error "Must use builtin allocator for 64 bit target"
#endif
static void *mem_alloc(void *ud, void *ptr, size_t osize, size_t nsize)
{
(void)ud;