SLua: Memory Limits

Current state of SLua memory utilization: still in much flux

Note that ll.SetMemoryLimit() seems to have no effect on what is displayed

Port the traditional LSL memory bits to Lua:

-- Memory limit
local MEM_LIMIT = 8192
 
local function main()
    ll.OwnerSay("main()")
 
    -- Set up memory constraints
    ll.SetMemoryLimit(MEM_LIMIT);
 
    -- Uncomment the next line in order to see how much memory your script is using
    ll.OwnerSay(string.format("Memory: used=%d free=%d", ll.GetUsedMemory(), ll.GetFreeMemory()))
end
 
main()