summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/node-gyp/gyp/test/defines/defines.c
blob: e0ef5212da94efff5917308ca6dfd2e122331eca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Copyright (c) 2011 Google Inc. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

#include <stdio.h>

int main(int argc, char *argv[])
{
#ifdef FOO
  printf("FOO is defined\n");
#endif
  printf("VALUE is %d\n", VALUE);

#ifdef PAREN_VALUE
  printf("2*PAREN_VALUE is %d\n", 2*PAREN_VALUE);
#endif

#ifdef HASH_VALUE
  printf("HASH_VALUE is %s\n", HASH_VALUE);
#endif

  return 0;
}