blueloveTH hai 1 ano
pai
achega
8a049b06bd
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 2 0
      src/compiler/compiler.cpp
  2. 2 0
      src/compiler/lexer.cpp

+ 2 - 0
src/compiler/compiler.cpp

@@ -2,6 +2,8 @@
 #include "pocketpy/common/config.h"
 #include "pocketpy/interpreter/vm.hpp"
 
+#include <cstdarg>
+
 namespace pkpy {
 
 #define consume(expected) if(!match(expected)) return SyntaxError("expected '%s', got '%s'", TK_STR(expected), TK_STR(curr().type));

+ 2 - 0
src/compiler/lexer.cpp

@@ -2,6 +2,8 @@
 #include "pocketpy/common/gil.hpp"
 #include "pocketpy/common/version.h"
 
+#include <cstdarg>
+
 namespace pkpy {
 
 // clang-format off