Searched refs:value_index (Results 1 - 6 of 6) sorted by relevance

/netbsd-current/external/bsd/kyua-cli/dist/utils/config/
H A Dnodes.cpp326 /// \param value_index The stack index in which the value resides.
328 /// \throw value_error If the value in state(value_index) cannot be
331 config::bool_node::set_lua(lutok::state& state, const int value_index)
333 if (state.is_boolean(value_index))
334 set(state.to_boolean(value_index));
365 /// \param value_index The stack index in which the value resides.
367 /// \throw value_error If the value in state(value_index) cannot be
370 config::int_node::set_lua(lutok::state& state, const int value_index)
372 if (state.is_number(value_index))
373 set(state.to_integer(value_index));
[all...]
H A Dtree.cpp150 /// \param value_index The position in the Lua stack holding the value.
157 const int value_index)
164 child.set_lua(state, value_index);
156 set_lua(const std::string& dotted_key, lutok::state& state, const int value_index) argument
H A Dnodes.hpp114 /// \param value_index The stack index in which the value resides.
116 /// \throw value_error If the value in state(value_index) cannot be
118 virtual void set_lua(lutok::state& state, const int value_index) = 0;
H A Dlua_module_test.cpp87 /// \param value_index The stack index in which the value resides.
89 set_lua(lutok::state& state, const int value_index) argument
91 ATF_REQUIRE(state.is_number(value_index));
92 set(custom_type(state.to_integer(value_index) * 2));
H A Dtree_test.cpp97 /// \param value_index The stack index in which the value resides.
99 set_lua(lutok::state& state, const int value_index) argument
101 ATF_REQUIRE(state.is_number(value_index));
102 int_wrapper new_value(state.to_integer(value_index));
/netbsd-current/external/bsd/kyua-cli/dist/engine/
H A Dconfig.cpp147 /// \param value_index The stack index in which the value resides.
149 /// \throw value_error If the value in state(value_index) cannot be
152 engine::user_node::set_lua(lutok::state& state, const int value_index) argument
154 if (state.is_number(value_index)) {
157 } else if (state.is_string(value_index)) {

Completed in 89 milliseconds