예제 #1
0
static int
lblock(lua_State *L) {
	size_t t = malloc_memory_block();
	lua_pushinteger(L, (lua_Integer)t);

	return 1;
}
예제 #2
0
파일: lua-memory.c 프로젝트: wyaocn/skynet
static int
lblock(lua_State *L) {
	size_t t = malloc_memory_block();
	lua_pushunsigned(L, t);

	return 1;
}