Menu

#53 @@define in @@ifdef constructs is incorrectly handled

0.13
closed-fixed
nobody
None
5
2020-12-30
2006-03-30
Marc Haber
No

Hi,

a construction like

@@ifdef BINDCHROOT
@@define BINDVARDIR /var/local/bind/var
@@else
@@define BINDVARDIR /var
@@endif

does not seem to work. It looks like @@ifdef is
ignored for @@defines inside the @@ifdef construct,
which will have BINDVARDIR end up as /var.

This is counter-intuitive and different from what -
for example - the C preprocessor does.

Greetings
Marc

Discussion

  • Robby Griffin

    Robby Griffin - 2007-05-25

    Logged In: YES
    user_id=83996
    Originator: NO

    The actual problem may be that @@else doesn't work. I'm going to file a separate bug report.

     
  • Hannes von Haugwitz

    • status: open --> closed-fixed
    • Group: --> 0.13
     
  • Hannes von Haugwitz

    fixed (commit cea21ddca3b526e60b6c16e8bf6d1f29e40151f5 )

     

Log in to post a comment.

MongoDB Logo MongoDB