Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
d88b4456
Unverified
Commit
d88b4456
authored
Oct 22, 2021
by
Nikita Titov
Committed by
GitHub
Oct 22, 2021
Browse files
[docs] fix C API docs rendering (#4688)
* fix C API docs rendering * place comments before members they describe
parent
13ed38ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
docs/conf.py
docs/conf.py
+1
-0
include/LightGBM/c_api.h
include/LightGBM/c_api.h
+12
-6
No files found.
docs/conf.py
View file @
d88b4456
...
...
@@ -221,6 +221,7 @@ def generate_doxygen_xml(app: Sphinx) -> None:
"MACRO_EXPANSION=YES"
,
"EXPAND_ONLY_PREDEF=NO"
,
"SKIP_FUNCTION_MACROS=NO"
,
"PREDEFINED=__cplusplus"
,
"SORT_BRIEF_DOCS=YES"
,
"WARN_AS_ERROR=YES"
,
]
...
...
include/LightGBM/c_api.h
View file @
d88b4456
...
...
@@ -1329,19 +1329,25 @@ LIGHTGBM_C_EXPORT int LGBM_NetworkInitWithFunctions(int num_machines,
void
*
allgather_ext_fun
);
#if !defined(__cplusplus) && (!defined(__STDC__) || (__STDC_VERSION__ < 199901L))
#define INLINE_FUNCTION
/*!< \brief inline specifier no-op in C using standards before C99. */
/*! \brief Inline specifier no-op in C using standards before C99. */
#define INLINE_FUNCTION
#else
#define INLINE_FUNCTION inline
/*!< \brief Inline specifier. */
/*! \brief Inline specifier. */
#define INLINE_FUNCTION inline
#endif
#if !defined(__cplusplus) && (!defined(__STDC__) || (__STDC_VERSION__ < 201112L))
#define THREAD_LOCAL
/*!< \brief Thread local specifier no-op in C using standards before C11. */
/*! \brief Thread local specifier no-op in C using standards before C11. */
#define THREAD_LOCAL
#elif !defined(__cplusplus)
#define THREAD_LOCAL _Thread_local
/*!< \brief Thread local specifier. */
/*! \brief Thread local specifier. */
#define THREAD_LOCAL _Thread_local
#elif defined(_MSC_VER)
#define THREAD_LOCAL __declspec(thread)
/*!< \brief Thread local specifier. */
/*! \brief Thread local specifier. */
#define THREAD_LOCAL __declspec(thread)
#else
#define THREAD_LOCAL thread_local
/*!< \brief Thread local specifier. */
/*! \brief Thread local specifier. */
#define THREAD_LOCAL thread_local
#endif
/*!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment