Added ManagedC (#1232)

* Added ManagedC

* fixed formating

* Fixed suggestions

* v1.4.0

* aaaa

* critical bug fix

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

Co-authored-by: ruki <waruqi@gmail.com>
pull/1313/head
Amrit Bhogal 2 years ago committed by GitHub
parent 7ca5c4d779
commit 98cc5e3d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      packages/m/managedc/xmake.lua

@ -0,0 +1,22 @@
package("managedc")
set_kind("library", { headeronly = true })
set_description("Reference counter garabage collection for C")
add_urls("https://github.com/Frityet/ManagedC.git")
add_versions("1.5.0", "f4cce9c1aee952d603c18b73dc6219ea15b91717")
on_install("linux", "macosx", function (package)
os.cp("src/*.h", package:installdir("include"))
end)
on_test(function (package)
assert(package:check_csnippets({test = [[
#include <stdio.h>
void test() {
void* data = mc_alloc_managed(0, 0, 0);
printf("data: %p\n", data);
}
]]}, {configs = {languages = "c11"}, includes = "managed.h"}))
end)
Loading…
Cancel
Save