We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca5c4d commit 98cc5e3Copy full SHA for 98cc5e3
packages/m/managedc/xmake.lua
@@ -0,0 +1,22 @@
1
+package("managedc")
2
+ set_kind("library", { headeronly = true })
3
+ set_description("Reference counter garabage collection for C")
4
+
5
+ add_urls("https://github.com/Frityet/ManagedC.git")
6
+ add_versions("1.5.0", "f4cce9c1aee952d603c18b73dc6219ea15b91717")
7
8
+ on_install("linux", "macosx", function (package)
9
+ os.cp("src/*.h", package:installdir("include"))
10
+ end)
11
12
+ on_test(function (package)
13
+ assert(package:check_csnippets({test = [[
14
+ #include <stdio.h>
15
+ void test() {
16
+ void* data = mc_alloc_managed(0, 0, 0);
17
+ printf("data: %p\n", data);
18
+ }
19
+ ]]}, {configs = {languages = "c11"}, includes = "managed.h"}))
20
21
22
0 commit comments