summaryrefslogtreecommitdiff
path: root/server-beta/src/vm/dummySource.lua
blob: 50ff13e7d92bd8f37687614722a5c63d7829024e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
local vm    = require 'vm.vm'

vm.librarySourceCache = setmetatable({}, { __mode = 'kv'})

function vm.librarySource(lib)
    if not vm.librarySourceCache[lib] then
        vm.librarySourceCache[lib] = {
            type    = 'library',
            library = lib,
        }
    end
    return vm.librarySourceCache[lib]
end