镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

define / ifdef #11

Open
Open

Description

@the-reality-engineer

Does not seem to work:

// #define var X=true
// #ifdef X
console.log('hi')
// #endif

Activity

  1. tomByrer commented on Aug 22, 2014

    @tomByrer

    How about // #define var X=1?

  2. simonseyock commented on Oct 8, 2014

    @simonseyock

    It also doesn't work with var!!!!

    It seems that // #ifdef and // #ifndef only work together with the passed defines (!!!!) and that // #define ONLY works together with put!!!! That is completely not what I expected.

    This really is a problem and together with the include_once issue makes this preprocessor nearly useless for me. I could emulate include_once if this would work (just like in c).

  3. dcodeIO commented on Oct 8, 2014

    @dcodeIO
    Owner

    Deprecation notice: Preprocessor.js has been deprecated in favor of MetaScript, a much more JavaScripty way for build time meta programming using JavaScript itself as the meta language. Check out the migration guide to get a quick impression of its merits.

  4. tomByrer commented on Oct 9, 2014

    @tomByrer

    Awesome!

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