aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-12-04 16:50:53 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-12-04 16:50:53 -0500
commit99fff188e86e8f45b56fefe301f7ceba365bd6ad (patch)
tree80d7284fc02173a166f0cbaf128bfa02950b753a /src/lpm.c
parent50ceefd226c785bd7226e66ed42c7ea499fb0480 (diff)
downloadlite-xl-plugin-manager-99fff188e86e8f45b56fefe301f7ceba365bd6ad.tar.gz
lite-xl-plugin-manager-99fff188e86e8f45b56fefe301f7ceba365bd6ad.zip
Moved things over to LPM_STATIC, rather than LPM_LIVE.
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lpm.c b/src/lpm.c
index b19b11d..076f5ef 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -831,7 +831,7 @@ static const luaL_Reg system_lib[] = {
#endif
-#ifndef LPM_LIVE
+#ifdef LPM_STATIC
extern const char src_lpm_luac[];
extern unsigned int src_lpm_luac_len;
#endif
@@ -861,7 +861,7 @@ int main(int argc, char* argv[]) {
lua_setglobal(L, "PLATFORM");
lua_pushliteral(L, LITE_ARCH_TUPLE);
lua_setglobal(L, "ARCH");
- #ifdef LPM_LIVE
+ #ifndef LPM_STATIC
if (luaL_loadfile(L, "src/lpm.lua") || lua_pcall(L, 0, 1, 0)) {
#else
if (luaL_loadbuffer(L, src_lpm_luac, src_lpm_luac_len, "lpm.lua") || lua_pcall(L, 0, 1, 0)) {