镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
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

Open

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

Activity

  1. dcodeIO commented on May 2, 2015

    @dcodeIO
    Owner

    Sorry, this project is not maintained anymore. Give https://github.com/dcodeIO/MetaScript a try!

  2. STAH commented on Feb 2, 2016

    @STAH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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