File tree 4 files changed +28
-1
lines changed
4 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ Defines: [
17
17
USE_LZMA ;-- adds support for LZMA [de]compression
18
18
USE_MIDI_DEVICE ;-- includes MIDI device when possible (Windows & macOS)
19
19
20
+ ;INCLUDE_TASK ;-- tasks are not implemented yet, so include it only on demand
21
+
20
22
;@@ optional fine tuning:
21
23
;DO_NOT_NORMALIZE_MAP_KEYS
22
24
; with above define you would get:
Original file line number Diff line number Diff line change 59
59
60
60
#include "sys-core.h"
61
61
62
+ #ifdef INCLUDE_TASK
62
63
/***********************************************************************
63
64
**
64
65
*/ static void Launch_Task (REBVAL * task )
76
77
77
78
Debug_Str ("End Task" );
78
79
}
79
-
80
+ #endif
80
81
81
82
/***********************************************************************
82
83
**
83
84
*/ void Do_Task (REBVAL * task )
84
85
/*
85
86
***********************************************************************/
86
87
{
88
+ #ifdef INCLUDE_TASK
87
89
OS_CREATE_THREAD ((void * )Launch_Task , task , 50000 );
90
+ #else
91
+ puts ("** Build using INCLUDE_TASK define to experiment with task!" );
92
+ Trap0 (RE_FEATURE_NA );
93
+ #endif
88
94
}
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ dt [ ;- delta time
46
46
wrap load %units/typeset-test.r3
47
47
wrap load %units/datatype-test.r3
48
48
wrap load %units/parse-test.r3
49
+ wrap load %units/task-test.r3
49
50
50
51
recycle/torture
51
52
recycle
Original file line number Diff line number Diff line change
1
+ Rebol [
2
+ Title: "Rebol3 task test script"
3
+ Author: "Oldes, Peter W A Wood"
4
+ File: %task-test.r3
5
+ Tabs: 4
6
+ Needs: [%../quick-test-module.r3 ]
7
+ ]
8
+
9
+ ~~~start-file~~~ "TASK!"
10
+
11
+ ===start-group=== "task"
12
+ --test-- "issues-47"
13
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/47
14
+ --assert error? try [do make task! [2 / 0 ]] ; trying to evaluate a task should not crash!
15
+
16
+ ===end-group===
17
+
18
+ ~~~end-file~~~
You can’t perform that action at this time.
0 commit comments