+++ /dev/null
-{
- "configurations": {
- "cpptools-run": {
- "adapter": "vscode-cpptools",
- "configuration": {
- "type": "cppdbg",
- "request": "launch",
- "program": "${workspaceFolder}/bin/onyx-debug",
- "args": ["-VVV", "tmp/a.onyx"],
- "stopAtEntry": true,
- "cwd": "${workspaceFolder}",
- "environment": [],
- "externalConsole": false,
- "MIMode": "gdb",
- "setupCommands": [
- {
- "description": "Enable pretty-printing for gdb",
- "text": "-enable-pretty-printing",
- "ignoreFailures": true
- }
- ]
- }
- }
- }
-}
};
threads := (cast(^thread.Thread) alloc.from_stack(thread_count * sizeof thread.Thread))[0 .. (thread_count - 1)];
- for^ threads do thread.spawn(it, ^t_data, #solidify thread_function {body=body, T=T, Ctx=Ctx});
+ for^ threads do thread.spawn(it, ^t_data, #solidify thread_function {body=body});
thread_function(^t_data, body);
data: ^Ctx;
}
- thread_function :: (__data: ^Thread_Data($T, $Ctx), $body: Code) {
+ thread_function :: (__data: ^Thread_Data, $body: Code) {
thread_data := __data.data;
for #no_close *__data.iter {
#insert body;
+++ /dev/null
-version(1);
-project_name = "Onyx";
-
-patterns = {
-"*.c",
-"*.cpp",
-"*.h",
-"*.onyx",
-"*.js",
-"*.bat",
-"*.sh",
-"*.4coder",
-"*.txt",
-};
-blacklist_patterns = {
-".*",
-};
-load_paths_custom = {
- {"."},
-};
-load_paths = {
- { load_paths_custom, .os = "win" },
- { load_paths_custom, .os = "linux"},
- { load_paths_custom, .os = "mac" },
-};
-
-build_debug_win32 = "build.bat";
-build_release_win32 = "build.bat 1";
-build_debug_linux = "./build.sh debug";
-build_release_linux = "./build.sh";
-
-command_list = {
- { .name = "Build Debug",
- .out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
- .cmd = { {build_debug_win32, .os ="win" },
- {build_debug_linux, .os ="linux"}, }, },
-
- { .name = "Build Release",
- .out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
- .cmd = { {build_release_win32, .os ="win" },
- {build_release_linux, .os ="linux" }, }, },
-};
-
-fkey_command[1] = "Build Debug";
-fkey_command[2] = "Build Release";