Re: Constant STRINGs from C source

2004-09-10 Thread Leopold Toetsch
Dan Sugalski wrote: STRING *foo = CONST_STRING(interpreter, "foobar"); One small warning: the CONST_STRING should always be on its own line and not in a multiline C statement. Preprocessors could get confused about the line number, which is used internally in the CONST_STRING macro. leo

Constant STRINGs from C source

2004-09-09 Thread Dan Sugalski
These are *real* constant constants -- things that are constant at compile time. The source has a bunch of them scattered around. Leo put in the initial support for these things, and I've added them to some more files. To declare a compile-time STRING constant, use the CONST_STRING macro. Take