Skip to content

Commit 3f64df9

Browse files
committed
Prevent doxygen from including the C API in the C++ API again
1 parent 4007d72 commit 3f64df9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

doc/Doxyfile_API

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ EXCLUDE_SYMBOLS = lslboost
1818
SOURCE_BROWSER = YES
1919
CLANG_ASSISTED_PARSING = NO
2020
CLANG_OPTIONS = -I../lslboost
21+
MACRO_EXPANSION = YES
22+
EXPAND_ONLY_PREDEF = YES
23+
ENABLE_PREPROCESSING = YES
24+
PREDEFINED = LIBLSL_C_API DOXYGEN_SHOULD_SKIP_THIS
2125
ALPHABETICAL_INDEX = NO
2226
HTML_DYNAMIC_SECTIONS = YES
2327
GENERATE_TREEVIEW = YES

include/lsl_cpp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
#include <stdexcept>
2424

2525
namespace lsl {
26+
#ifndef DOXYGEN_SHOULD_SKIP_THIS
2627
#include "lsl_c.h"
28+
#endif
2729

2830
/**
2931
* Constant to indicate that a stream has variable sampling rate.

0 commit comments

Comments
 (0)