Ruby 4.1.0dev (2026-11-19 revision b3e890bf959ffb14f55ecd016717417a62ebd04e)
options.hpp File Reference

(b3e890bf959ffb14f55ecd016717417a62ebd04e)

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.