Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

#define + #ifdef don't produce the correct output #18

@christianfriedl

Description

@christianfriedl

Hi,

in the file testprep.js, I tried the following variations:

// #define var DEBUG=1
(or)
// #define DEBUG 1
(or)
// #define DEBUG=1

(and then in the same file):
// #ifdef DEBUG
console.log('debug');
// #else
console.log('nodebug');
// #endif

console.log('after');

However, the output is always the same:
$ preprocess testprep.js

console.log('nodebug');

console.log('after');

So either I'm completely misinterpreting the intent, or it isn't working

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions