[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: including files only once



  Hi,

From: Anuradha Ratnaweera <anuradha@gnu.org>
Subject: including files only once
Date: Wed, 2 May 2001 11:50:22 +0600 (LKT)
Message-ID: <Pine.LNX.4.21.0105021148340.342-100000@presario>

> Is there a way to include a file only once with a method similar to C
> header files so that I can
> 
> if not defined _include_file_flag_
> define _include_file_flag_
> 
> contents of the file
> 
> endif

  I don't know such a macro,
but '#use' includes a file only once.
Next 2 lines are equivalent,
except for this feature.

   #use type::category::file
   #include <category/file.type>

See 'man wml_p1_ipp' for detail.

-- Regards,
Nobuyuki Tsuchimura
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com