diff --git a/.gitignore b/.gitignore
index caf3d11..221daa9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -50,3 +50,4 @@ modules.order
Module.symvers
Mkfile.old
dkms.conf
+.vscode
\ No newline at end of file
diff --git a/README.md b/README.md
index 418a89b..0333505 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,8 @@
# Vendor
+
+
+
+
This repository contains external libraries for use with C3.
### List of libraries
diff --git a/libraries/opengl.c3l/opengl.c3i b/libraries/opengl.c3l/opengl.c3i
index ff0592c..932b902 100644
--- a/libraries/opengl.c3l/opengl.c3i
+++ b/libraries/opengl.c3l/opengl.c3i
@@ -73,7 +73,7 @@ faultdef GL_INIT_FAILED;
macro int? init(GLLoadFn load)
{
int version = gl::load_gl_internal(load);
- if (version == 0) return GL_INIT_FAILED?;
+ if (version == 0) return GL_INIT_FAILED~;
return version;
}
diff --git a/libraries/tree_sitter.c3l/wrappers.c3 b/libraries/tree_sitter.c3l/wrappers.c3
index 0239ddf..a20178d 100644
--- a/libraries/tree_sitter.c3l/wrappers.c3
+++ b/libraries/tree_sitter.c3l/wrappers.c3
@@ -8,7 +8,7 @@ faultdef INCOMPATIBLE_LANGUAGE_VERSION;
fn TSParser*? new_with_language(TSLanguage* language) {
TSParser* parser = ts::parser_new();
- return ts::parser_set_language(parser, language) ? parser : INCOMPATIBLE_LANGUAGE_VERSION?;
+ return ts::parser_set_language(parser, language) ? parser : INCOMPATIBLE_LANGUAGE_VERSION~;
}
fn void delete(TSParser* parser) {
@@ -63,7 +63,7 @@ fn TSQuery*? new(TSLanguage* language, String query, uint* error_offset = null)
TSQueryError error_type;
TSQuery* result = ts::query_new(language, query.ptr, query.len, error_offset, &error_type);
if (!result) {
- return fault_from_error(error_type)?;
+ return fault_from_error(error_type)~;
}
return result;
}
@@ -94,7 +94,7 @@ fn TSQueryCapture? TSQueryMatch.get_capture(&match, String name, TSQuery* query)
}
}
- return NOT_FOUND?;
+ return NOT_FOUND~;
}
// Query Capture
diff --git a/libraries/webgpu.c3l/adapter.c3 b/libraries/webgpu.c3l/adapter.c3
index 5182327..16280fc 100644
--- a/libraries/webgpu.c3l/adapter.c3
+++ b/libraries/webgpu.c3l/adapter.c3
@@ -17,6 +17,6 @@ fn Device? Adapter.requestDevice(Adapter adapter, DeviceDescriptor* descriptor =
if(device) {
return device;
} else {
- return DEVICE_REQUEST_FAILED?;
+ return DEVICE_REQUEST_FAILED~;
}
}
diff --git a/libraries/webgpu.c3l/instance.c3 b/libraries/webgpu.c3l/instance.c3
index a2752e3..a74d835 100644
--- a/libraries/webgpu.c3l/instance.c3
+++ b/libraries/webgpu.c3l/instance.c3
@@ -18,6 +18,6 @@ fn Adapter? Instance.requestAdapter(Instance instance, RequestAdapterOptions* op
if(adapter) {
return adapter;
} else {
- return ADAPTER_REQUEST_FAILED?;
+ return ADAPTER_REQUEST_FAILED~;
}
}