diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2016-10-17 12:43:53 +0900 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2016-10-17 12:43:53 +0900 |
commit | da6230a7fb557b928e538b49ce1b53ecbe5deb84 (patch) | |
tree | ad01ccd7d6ce0b1f50e0b990c8d37d130e6faeac /lib | |
parent | 9bf3cd359f67dc3caea0cf6f493fc01672cc42c4 (diff) | |
download | supple-da6230a7fb557b928e538b49ce1b53ecbe5deb84.tar.gz |
Move wrapper path from supple.host into supple.capiv1.0.7
Diffstat (limited to 'lib')
-rw-r--r-- | lib/supple/capi.c | 2 | ||||
-rw-r--r-- | lib/supple/host.lua | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/supple/capi.c b/lib/supple/capi.c index e12521d..8d724ca 100644 --- a/lib/supple/capi.c +++ b/lib/supple/capi.c @@ -463,5 +463,7 @@ luaopen_supple_capi(lua_State *L) lua_pushcclosure(L, supple_capi_next, 0); lua_pushcclosure(L, supple_capi_pairs, 1); lua_setfield(L, -2, "pairs"); + lua_pushliteral(L, WRAPPER_PATH); + lua_setfield(L, -2, "wrapper_path"); return 1; } diff --git a/lib/supple/host.lua b/lib/supple/host.lua index 8cab3f7..967bb15 100644 --- a/lib/supple/host.lua +++ b/lib/supple/host.lua @@ -56,7 +56,7 @@ local function simplify(t, memo) end local function run_wrapper() - local wrapperpath = "@@WRAPPER_BIN@@" + local wrapperpath = capi.wrapper_path -- START_TEST_SUPPLE wrapperpath = os.getenv "SUPPLE_TEST_WRAPPER" -- END_TEST_SUPPLE |