diff options
Diffstat (limited to 'tutorial/chapter-2/lib/lib.c')
-rw-r--r-- | tutorial/chapter-2/lib/lib.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tutorial/chapter-2/lib/lib.c b/tutorial/chapter-2/lib/lib.c new file mode 100644 index 000000000..9fe020ba2 --- /dev/null +++ b/tutorial/chapter-2/lib/lib.c @@ -0,0 +1,15 @@ +//! [0] + +// lib/lib.cpp +#include "lib.h" + +#ifndef CRUCIAL_DEFINE +# error CRUCIAL_DEFINE not defined +#endif + +const char *get_string() +{ + return "Hello from library"; +} + +//! [0] |