Re: forced casts question

Etienne Gagnon <[email protected]> Wed, 19 Jan 2005 01:25:14 -0500
Newsgroups gmane.comp.java.vm.sablevm.devel
Organization UQAM
Message-ID <[email protected]>
Chris Pickett wrote:
> I have not been using the .list files (casting, memory allocation) 
> because it has typically been too much of a pain trying to make them and 
> types.h work with conditional compilation. 

Look at global_allocation.list for an example of using conditional 
compilation.

> In general, is it okay to 
> introduce types and utility functions into the main VM even if they're 
> only going to be used under certain builds (in my case if _SABLEVM_SPMT 
> is defined)?  Or should I make new files for all such things?

Should always be surrounded by conditionals, but see above for a nice 
trick to achieve that easily. :-)

-- 
Etienne M. Gagnon, Ph.D.            http://www.info2.uqam.ca/~egagnon/
SableVM:                                       http://www.sablevm.org/
SableCC:                                       http://www.sablecc.org/

_______________________________________________
SableVM-devel mailing list
[email protected]
http://sablevm.org/lists/control/listinfo/sablevm-devel
signature.asc (application/pgp-signature, 256 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD4DBQFB7f1KjyrJi4rH84gRAjmyAJY3XG3/ma5gtPqLXGbgn+ASF3JdAJ9cPUcE
zjzIbXLaNjUWtL7Cb61DLw==
=XZMy
-----END PGP SIGNATURE-----