extern fun exportToCTest(i:int):int="ext#exportToCTest"
implement exportToCTest (i)=i+1
%{$
int callAtsTest(int a)
{
return exportToCTest(0);
}
%}
sorry, i forgot to use implement , its working now
在2025年6月24日星期二 UTC+8 10:01:47<jin> 写道:
> i'm using ats2, and i want to use pthread, i want to call ats funtion in c
> code, i tried the extern fun xxx="ext#xxx", but seems like c function cant
> use the xxx to run the ats function. any way to export a ats function with
> a global name which c can use?
--
You received this message because you are subscribed to the Google Groups
"ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/ats-lang-users/de5b67f7-40e8-4ad6-8d91-7dd4cefed90dn%40googlegroups.com.