Bladeren bron

remove: 弃用lua_writestringerror,改用LLOGE

Wendal Chen 4 jaren geleden
bovenliggende
commit
2f1da6f291
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      luat/modules/luat_main.c

+ 3 - 3
luat/modules/luat_main.c

@@ -96,8 +96,8 @@ static int pmain(lua_State *L) {
 ** (if present)
 */
 static void l_message (const char *pname, const char *msg) {
-  if (pname) lua_writestringerror("%s: ", pname);
-  lua_writestringerror("%s\n", msg);
+  if (pname) LLOGE("%s: ", pname);
+  LLOGE("%s\n", msg);
 }
 
 
@@ -116,7 +116,7 @@ static int report (lua_State *L, int status) {
 }
 
 static int panic (lua_State *L) {
-  lua_writestringerror("PANIC: unprotected error in call to Lua API (%s)\n",
+  LLOGE("PANIC: unprotected error in call to Lua API (%s)\n",
                         lua_tostring(L, -1));
   return 0;  /* return to Lua to abort */
 }