Skip to content

Commit 68b97a5

Browse files
committed
[Fix] define argus_init as static inline
1 parent 2320271 commit 68b97a5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
1011
- Printing subcommand list on command execution that cannot be executed directly.
1112

13+
### Fixed
14+
- Defining `argus_init()` as a `static inline` function.
15+
1216
## [0.1.0] - 2025-07-02
1317

1418
### Added

includes/argus/api.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ ARGUS_API argus_t _argus_init_validate(argus_option_t *options, const char *prog
3535
* Note: Only use this in production. During development, leave validation
3636
* enabled to catch configuration errors early.
3737
*/
38-
ARGUS_API argus_t argus_init(argus_option_t *options, const char *program_name, const char *version)
38+
static inline argus_t argus_init(argus_option_t *options, const char *program_name,
39+
const char *version)
3940
{
4041
#ifdef ARGUS_RELEASE
4142
return _argus_init_validate(options, program_name, version, false);

0 commit comments

Comments
 (0)