Main Page
Related Pages
Namespaces
Classes
Files
File List
examples
arduino
analog-reading
ndn_cpp_root.h
1
#define STR1(x) #x
2
#define STR2(x) STR1(x)
3
#define CONCAT(x, y) x ## y
4
5
// This makes a string for #include from the NDN-CPP root directory.
6
// It should include the absolute path up to ndn-cpp, except put "ndn-c"
7
// instead of "ndn-cpp". Use it like this:
8
// #include NDN_CPP_ROOT(pp/c/name.c)
9
// We split "ndn-cpp" into "ndn-c" and "pp" because the Arduino compiler won't
10
// accept NDN_CPP_SRC(/src/c/name.c) with a starting slash.
11
// We have to use an absolute path because the Arduino compiler won't
12
// include a relative file.
13
#define NDN_CPP_ROOT(x) STR2(CONCAT(/please/fix/NDN_CPP_ROOT/in/ndn_cpp_root.h/ndn-c, x))
14
Generated on Fri May 13 2016 15:36:51 by
1.8.9.1