POV-Ray : Newsgroups : povray.general : How to check an identifier type? : Re: How to check an identifier type? Server Time
20 May 2024 13:52:04 EDT (-0400)
  Re: How to check an identifier type?  
From: kurtz le pirate
Date: 27 Jul 2023 02:39:54
Message: <64c2113a$1@news.povray.org>
On 24/07/2023 08:21, And wrote:
>
> 
> No, I don't use Linux. I'm writing a macro, it input a file_name string. If
> (file_name = ""), it will not output that file.
> 

I'm not sure I understand the need, but if you want to test whether the
file name is empty, you can use the strlen() function.

#if(strlen(file_name))
  // file name is defined
  ...
#else
  // file name is empty
  ...
#end



-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

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