txlyre 1 ngày trước cách đây
mục cha
commit
8a9c589273
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      qic.c

+ 1 - 2
qic.c

@@ -2411,8 +2411,7 @@ const char *STD[][2] = {
     "func exit(c) {\n"
     "  if type(c) != \"number\"\n"
     "   throw \"expected first argument to be: number, but got: \" + type(c)\n"
-    "  inline `int code = qi_get(state, \"c\")->value.number`\n"
-    "  inline `exit(code)`\n"
+    "  inline `qi_exit(state, qi_get(state, \"c\")->value.number)`\n"
     "}\n"
     "func head(l): return l[0]\n"
     "func tail(l): return slice(l, 1)\n"