sokol-luajit/engine/dynasm/dasm_x86.lua

12 lines
350 B
Lua
Raw Normal View History

-- DynASM x86 loader module.
--unload dasm_x86x64 if it's already loaded.
if not package then package = {loaded = {}} end --for compat. with minilua
package.loaded.dasm_x86x64 = nil
dasm_x64 = false -- Using a global is an ugly, but effective solution.
local dasm = require'dasm_x86x64'
dasm_x64 = nil
package.loaded.dasm_x86x64 = true
return dasm