Skip to content

Commit

Permalink
Merge pull request #697 from ZettaScaleLabs/fix_bool_in_docs
Browse files Browse the repository at this point in the history
Fix docs generation for methods which returns bool
  • Loading branch information
milyin authored Sep 30, 2024
2 parents c9d83d6 + 66656bb commit 4a56e63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
language = 'c'
c_autodoc_roots = ['../include/zenoh-pico/api/']
c_autodoc_compilation_args = [
"-DSPHINX_DOCS",
"-DZ_FEATURE_UNSTABLE_API=1",
"-DZ_FEATURE_PUBLICATION=1",
"-DZ_FEATURE_SUBSCRIPTION=1",
Expand Down
3 changes: 3 additions & 0 deletions include/zenoh-pico/api/primitives.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
#ifndef INCLUDE_ZENOH_PICO_API_PRIMITIVES_H
#define INCLUDE_ZENOH_PICO_API_PRIMITIVES_H

#ifndef SPHINX_DOCS
// For some reason sphinx/clang doesn't handle bool types correctly if stdbool.h is included
#include <stdbool.h>
#endif
#include <stdint.h>

#include "olv_macros.h"
Expand Down

0 comments on commit 4a56e63

Please sign in to comment.