ATS_PACKNAME?

18 views
Skip to first unread message

Shea Levy

unread,
Aug 30, 2014, 12:12:27 AM8/30/14
to ats-lan...@googlegroups.com, ats-lan...@lists.sourceforge.net
Hi all,

I see many source files have ATS_PACKNAME #defines. I can guess what to
fill in there for my projects, but how is this used?

~Shea

Hongwei Xi

unread,
Aug 30, 2014, 12:22:08 AM8/30/14
to ats-lan...@googlegroups.com
Say you declare a function in a file XYZ.dats:

extern fun foo (...): ...

The ATS compiler generates a global name for foo
using the full path of XYZ.dats, which is often hard to read.

If the flag ATS_PACKNAME is set, then the global name for foo
is ${ATS_PACKNAME}foo, where ${ATS_PACKNAME} is the string
value of ATS_PACKNAME.




~Shea

--
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 ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/20140830041220.GA9476%40nixos.hsd1.nh.comcast.net.

Shea Levy

unread,
Aug 30, 2014, 12:33:21 AM8/30/14
to ats-lan...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages