feat(clasp): accept C++ arguments_t by reference for 0.16.0-alpha1 - #35
Merged
Merged
Conversation
Spell C API types as `char_t`, `arguments_t`, `argument_t`, and `usageinfo_t` in the C++ layer (`clasp.h`, `clasp.hpp`, `main.hpp`, `search_specifications.hpp`); bump **CLASP_VER_PATCH** to 3.
Widen the C++ API so callers can pass `arguments_t` by reference as well as pointer: `arguments_adaptor_t` for `showUsage`/`showVersion`, a reference `invoke` callback overload, `flag_specified` and stream inserter overloads, plus release docs, examples, and version macros (`ALPHABETA` 0x41).
mwsis
approved these changes
Sep 19, 2026
GarthJL1965
approved these changes
Sep 19, 2026
docs(clasp): make specifications-first invoke() the Doxygen primary Document the specifications-before-callback pointer overload of clasp::main::invoke() as the primary entry, and mark the other overloads with \overload so Doxygen does not treat repeated \param argc as a fatal warning. Call that argument order from test.unit.main.programname.1, and correct clasp.hpp version macros (MINOR/REVISION/EDIT).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Widen the C++ API so callers can pass
arguments_tby reference as well as pointer:arguments_adaptor_tforshowUsage/showVersion, a referenceinvokecallback overload,flag_specifiedand stream inserter overloads, plus release docs, examples, and version macros (ALPHABETA0x41).