Ruby 4.1.0dev (2026-11-18 revision 9de06831e37534f8a163e598cc0c6903c7687430)
options.hpp File Reference

(9de06831e37534f8a163e598cc0c6903c7687430)

Ownership of parse options from C++. More...

#include "prism/compiler/cplusplus.hpp"
#include "prism/options.h"
#include <memory>
Include dependency graph for options.hpp:

Go to the source code of this file.

Data Structures

struct  prism::options_deleter
 Frees options with pm_options_free. More...

Typedefs

using prism::unique_options = std::unique_ptr<pm_options_t, options_deleter>
 An owned set of options.

Functions

unique_options prism::make_options () noexcept
 Allocate a new set of options with every option at its default.

Detailed Description

Ownership of parse options from C++.

Definition in file options.hpp.

Typedef Documentation

◆ unique_options

using prism::unique_options = std::unique_ptr<pm_options_t, options_deleter>

An owned set of options.

Definition at line 28 of file options.hpp.

Function Documentation

◆ make_options()

unique_options prism::make_options ( )
inlinenodiscardnoexcept

Allocate a new set of options with every option at its default.

Allocation failure aborts, so this never throws.

Returns
A unique_options owning the newly allocated options.

Definition at line 37 of file options.hpp.