Prism Ruby parser
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
options.hpp File Reference

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++.

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.