We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › #include and #define
Page Index Toggle Pages: 1
#include and #define (Read 1929 times)
#include and #define
Oct 7th, 2007, 10:11pm
 
how can I use includes and defines?
Re: #include and #define
Reply #1 - Oct 7th, 2007, 10:22pm
 
Those are C syntax, not Processing or Java.

There are no #defines.. the best you can do is a const really.

As for includes, well processing will let you use multiple files (use the -> icon to create new tabs, each of which is a new file that'll be automatically merged)

If you want to use a library, then the import statement acts both as #include as well as -l<library> compile flag in C terms.
Re: #include and #define
Reply #2 - Oct 7th, 2007, 11:01pm
 
Thank you very much!
Page Index Toggle Pages: 1