#include "pybind11.h"
#include <utility>
Go to the source code of this file.
|
void | ensure_builtins_in_globals (object &global) |
|
template<eval_mode mode = eval_expr, size_t N> |
object | eval (const char(&s)[N], object global=globals(), object local=object()) |
|
template<eval_mode mode = eval_expr> |
object | eval (const str &expr, object global=globals(), object local=object()) |
|
template<eval_mode mode = eval_statements> |
object | eval_file (str fname, object global=globals(), object local=object()) |
|
template<size_t N> |
void | exec (const char(&s)[N], object global=globals(), object local=object()) |
|
void | exec (const str &expr, object global=globals(), object local=object()) |
|
◆ eval_mode
Enumerator |
---|
eval_expr | Evaluate a string containing an isolated expression.
|
eval_single_statement | Evaluate a string containing a single statement. Returns none .
|
eval_statements | Evaluate a string containing a sequence of statement. Returns none .
|
Definition at line 36 of file eval.h.
◆ ensure_builtins_in_globals()
void ensure_builtins_in_globals |
( |
object & |
global | ) |
|
|
inline |
◆ eval() [1/2]
template<eval_mode mode = eval_expr, size_t N>
◆ eval() [2/2]
template<eval_mode mode = eval_expr>
◆ eval_file()
template<eval_mode mode = eval_statements>
◆ exec() [1/2]
◆ exec() [2/2]