aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_inject/tests/helpers/do_cuinit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'zluda_inject/tests/helpers/do_cuinit.rs')
-rw-r--r--zluda_inject/tests/helpers/do_cuinit.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/zluda_inject/tests/helpers/do_cuinit.rs b/zluda_inject/tests/helpers/do_cuinit.rs
new file mode 100644
index 0000000..468d56c
--- /dev/null
+++ b/zluda_inject/tests/helpers/do_cuinit.rs
@@ -0,0 +1,10 @@
+#![crate_type = "cdylib"]
+
+extern "system" {
+ fn cuInit(flags: u32) -> u32;
+}
+
+#[no_mangle]
+unsafe extern "system" fn do_cuinit(flags: u32) -> u32 {
+ cuInit(flags)
+}