From 6c4936eaa79f13b9eb22368bc5d88a7ce2b027ef Mon Sep 17 00:00:00 2001 From: Cosmin Apreutesei Date: Fri, 29 Oct 2021 13:03:47 +0300 Subject: [PATCH] unimportant --- bundle_luastate.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundle_luastate.lua b/bundle_luastate.lua index bb14cb0..351a6e7 100644 --- a/bundle_luastate.lua +++ b/bundle_luastate.lua @@ -14,12 +14,12 @@ local function bundle_add_loaders(state) end --call this after initializing the Lua state in order to patch `require` ---and `ffi.load` inside the state just as the main exe was upon init. +--and `ffi.load` inside the state just as the main exe was doing on init. function M.init_bundle(state) local ok, err = pcall(bundle_add_loaders, state) if not ok then return end --not running a bundled luajit exe local top = state:gettop() - state:push{[0] = arg[0]} --used by bundle_loader to get exe dir + state:push{[0] = arg[0]} --used to make `glue.bin` state:setglobal'arg' state:loadstring"return require'bundle_loader'()" local ok, ret = state:pcall()