aboutsummaryrefslogtreecommitdiff
path: root/src/moonp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/moonp.cpp')
-rw-r--r--src/moonp.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/moonp.cpp b/src/moonp.cpp
index 1e4302e..30cbe43 100644
--- a/src/moonp.cpp
+++ b/src/moonp.cpp
@@ -1,4 +1,4 @@
1/* Copyright (c) 2020 Jin Li, http://www.luvfight.me 1/* Copyright (c) 2021 Jin Li, http://www.luvfight.me
2 2
3Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 3Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 4
@@ -85,10 +85,10 @@ static const char luaminifyCodes[] =
85 85
86static void pushLuaminify(lua_State* L) { 86static void pushLuaminify(lua_State* L) {
87 if (luaL_loadbuffer(L, luaminifyCodes, sizeof(luaminifyCodes) / sizeof(luaminifyCodes[0]) - 1, "=(luaminify)") != 0) { 87 if (luaL_loadbuffer(L, luaminifyCodes, sizeof(luaminifyCodes) / sizeof(luaminifyCodes[0]) - 1, "=(luaminify)") != 0) {
88 std::string err = std::string("fail to load luaminify module.\n") + lua_tostring(L, -1); 88 std::string err = std::string("failed to load luaminify module.\n") + lua_tostring(L, -1);
89 luaL_error(L, err.c_str()); 89 luaL_error(L, err.c_str());
90 } else if (lua_pcall(L, 0, 1, 0) != 0) { 90 } else if (lua_pcall(L, 0, 1, 0) != 0) {
91 std::string err = std::string("fail to init luaminify module.\n") + lua_tostring(L, -1); 91 std::string err = std::string("failed to init luaminify module.\n") + lua_tostring(L, -1);
92 luaL_error(L, err.c_str()); 92 luaL_error(L, err.c_str());
93 } 93 }
94} 94}