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
parent
7ca5c4d779
commit
98cc5e3d8c
1 changed files with 22 additions and 0 deletions
@ -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…
Reference in new issue