[Bf-committers] char* or char[MAX_FILE] in DNA?

Mitchell Stokes mogurijin at gmail.com
Wed May 12 04:50:37 CEST 2010


On Tue, May 11, 2010 at 4:36 PM, Joshua Leung <aligorith at gmail.com> wrote:

> Hi,
>
> On Wed, May 12, 2010 at 10:16 AM, Mitchell Stokes <mogurijin at gmail.com>
> wrote:
> > Should I continue to use the char* or should I use char[MAX_FILE]? (I
> have
> > both working)
> > If I use char[MAX_FILE],
> Just beware that you shouldn't actually define it like that in the
> DNA_*_types.h files, since makesdna doesn't understand preprocessor
> statements like that, and actually ends up balking when you give it a
> file like that.


Yeah, I've already run into that problem. They are defined as follows:
char *vertex_shader;
etc


More information about the Bf-committers mailing list