Ruby 4.1.0dev (2026-10-21 revision 536dc6f98b72e6999a84bb6373562c43cb1ddf8a)
Data Structures | Typedefs | Functions
options.hpp File Reference

(536dc6f98b72e6999a84bb6373562c43cb1ddf8a)

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 = typedef 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 ( )
inlinenoexcept

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.

Referenced by prism::make_options().