File: define_types.py

package info (click to toggle)
preprocess 1.1.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 472 kB
  • ctags: 218
  • sloc: python: 1,640; cpp: 260; makefile: 31; fortran: 24
file content (35 lines) | stat: -rw-r--r-- 665 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!python

# #define FOO_NONE
# #define FOO_INT 42
# #define FOO_FLOAT 3.14
# #define FOO_STRING1 foo
# #define FOO_STRING2 "foo"
# #define FOO_LIST [1, 'a', 2.5]
# #define FOO_TUPLE (1, 'a', 2.5)
# #define FOO_DICT {'a':1, 'b':2}

# #if FOO_NONE is None
print "FOO_NONE"
# #endif
# #if FOO_INT == 42
print "FOO_INT"
# #endif
# #if FOO_FLOAT == 3.14
print "FOO_FLOAT"
# #endif
# #if FOO_STRING1 == "foo"
print "FOO_STRING1"
# #endif
# #if FOO_STRING2 == "foo"
print "FOO_STRING2"
# #endif
# #if FOO_LIST == [1, 'a', 2.5]
print "FOO_LIST"
# #endif
# #if FOO_TUPLE == (1, 'a', 2.5)
print "FOO_TUPLE"
# #endif
# #if FOO_DICT == {'a':1, 'b':2}
print "FOO_DICT"
# #endif