POV-Ray : Newsgroups : povray.programming : Checking if identifier is undefined? : Re: Checking if identifier is undefined? Server Time
28 Jul 2024 12:28:18 EDT (-0400)
  Re: Checking if identifier is undefined?  
From: Ron Parker
Date: 13 Dec 2000 10:22:58
Message: <slrn93f52k.1jj.ron.parker@fwi.com>
On 13 Dec 2000 10:11:22 -0500, Warp wrote:
>  I want to make a function that takes an undefined identifier name.
>  How do I check that the identifier name is valid and it's undefined,

Look at Parse_Ifdef_Param in tokenize.c.

>and
>how do I create an array using that identifier name?

Look at Parse_Array_Declare in tokenize.c to find out how to allocate the 
space and Parse_Declare and Parse_RValue in parse.c to see how to tie it 
to the identifier.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.