summaryrefslogtreecommitdiff
path: root/src/puzzles/puzzle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/puzzles/puzzle.h')
-rw-r--r--src/puzzles/puzzle.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/puzzles/puzzle.h b/src/puzzles/puzzle.h
index 838b9d2..181c0ae 100644
--- a/src/puzzles/puzzle.h
+++ b/src/puzzles/puzzle.h
@@ -1,18 +1,9 @@
#include <stddef.h>
#include <wren.h>
+#include "../wren_inter/wren_inter.h"
#ifndef PUZZLE_H
-
-enum PUZZLE_TEST_RESULT : char {
- RESULT_OK = 0,
- RESULT_WRONG_ANSWER,
- RESULT_COMPTIME_NO_ENTRY,
- RESULT_COMPTIME_ERR,
- RESULT_RUNTIME_ERR,
- // TODO: add async evaluation to prevent `while (true)` situation
- RESULT_TIMEOUT,
- RESULT_INIT_ERROR,
-};
+#define PUZZLE_H
// This is a param that would be placed in a slot
// https://wren.io/embedding/slots-and-handles.html#writing-slots
@@ -67,5 +58,4 @@ typedef struct {
SubmitionResult *SubmitSolution(Puzzle *self, char *script);
void FreeSunmitionResult(SubmitionResult *res);
-#define PUZZLE_H
#endif // PUZZLE_H