Starting to move the tests to C.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3652 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-08-19 19:29:37 +00:00
parent be6a39bd15
commit dd90fe4fbf
9 changed files with 154 additions and 102 deletions

View File

@ -1192,7 +1192,9 @@ void tf_task_activate(tf_task_t* task)
tf_ssb_set_trace(task->_ssb, task->_trace);
tf_ssb_broadcast_listener_start(task->_ssb, false);
tf_ssb_init(context, task->_ssb);
tf_ssb_server_open(task->_ssb, task->_ssb_port);
if (task->_ssb_port) {
tf_ssb_server_open(task->_ssb, task->_ssb_port);
}
JS_SetPropertyStr(context, global, "trace", JS_NewCFunction(context, _tf_task_trace, "trace", 1));
} else {