From 2802c8e8bb987206da0991129e30f0c198cd8f37 Mon Sep 17 00:00:00 2001 From: physick Date: Tue, 28 Jul 2026 01:07:07 +0500 Subject: versioning fix --- src/puzzles/puzzle.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/puzzles') 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 #include +#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 -- cgit v1.3