comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Subject: Re: Exclude parts of a package
Date: Thu, 5 Dec 2013 17:58:40 -0800 (PST)
Date: 2013-12-05T17:58:40-08:00	[thread overview]
Message-ID: <c001fce2-7672-4ca6-b39a-b5275955268b@googlegroups.com> (raw)
In-Reply-To: <52a0de7e$0$23162$2c885b36@post.eweka.nl>

Do you want a compile-time error when the user is calling, say, a v.1.2 function X but plans to use OpenCL v.1.0 only ?
In that case you could try using, in your separate file for 1.0, either a pragma like "Unimplemented_Unit" or trigger a warning only when the function is referenced - all that might be tricky and not portable.

Or you could use the gnatprep preprocessor for that and let it spit the appropriate packages in the subfolders, one with the 1.0 functions only, one with 1.0 to 1.1, one with 1.0 to 1.2.
HTH
_________________________ 
Gautier's Ada programming 
http://sf.net/users/gdemont

  reply	other threads:[~2013-12-06  1:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-05 20:13 Exclude parts of a package Felix Krause
2013-12-06  1:58 ` gautier_niouzes [this message]
2013-12-06  7:51 ` Chris Moore
2013-12-06  8:04 ` playerdark
2013-12-06 11:14 ` Brian Drummond
2013-12-06 11:14 ` Brian Drummond
2013-12-06 11:41 ` Brian Drummond
2013-12-06 20:48   ` Felix Krause
2013-12-06 21:27     ` Shark8
2013-12-07  8:41       ` Felix Krause
2013-12-07 11:55         ` Brian Drummond
2013-12-08 20:00 ` Stephen Leake
2013-12-12 14:30   ` Marius Amado-Alves
2013-12-13 13:16     ` Felix Krause
2013-12-13 16:17     ` Stephen Leake
2014-01-02 15:06       ` Marius Amado-Alves
2014-01-02 15:07       ` Marius Amado-Alves
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox