diff options
| author | physick <mynameisgennadiy@vk.com> | 2026-07-28 01:07:07 +0500 |
|---|---|---|
| committer | physick <mynameisgennadiy@vk.com> | 2026-07-28 01:07:07 +0500 |
| commit | 2802c8e8bb987206da0991129e30f0c198cd8f37 (patch) | |
| tree | ea24e597346e986039dde716f73d97f42d636056 /src/puzzles/puzzle.h | |
| parent | 26957338e8b42df4ad18ab38f08c70fba4c14bb4 (diff) | |
versioning fix
Diffstat (limited to 'src/puzzles/puzzle.h')
| -rw-r--r-- | src/puzzles/puzzle.h | 14 |
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 |
