Esempio n. 1
0
static int
ltotal(lua_State *L) {
	size_t t = malloc_used_memory();
	lua_pushinteger(L, (lua_Integer)t);

	return 1;
}
Esempio n. 2
0
static int
ltotal(lua_State *L) {
	size_t t = malloc_used_memory();
	lua_pushunsigned(L, t);

	return 1;
}