HomeSort by: relevance | last modified time | path
    Searched refs:lutok (Results 1 - 25 of 53) sorted by relevancy

1 2 3

  /src/external/bsd/kyua-cli/dist/utils/fs/
lua_module.hpp 35 #include <lutok/state.hpp>
41 void open_fs(lutok::state&);
lua_module_test.cpp 32 #include <lutok/operations.hpp>
33 #include <lutok/state.hpp>
34 #include <lutok/test_utils.hpp>
45 lutok::state state;
48 lutok::do_string(state, "return fs.basename", 1);
50 lutok::do_string(state, "return fs.dirname", 1);
52 lutok::do_string(state, "return fs.join", 1);
61 lutok::state state;
64 lutok::do_string(state, "return fs.basename('/my/test//file_foobar')", 1);
73 lutok::state state
    [all...]
lua_module.cpp 40 #include <lutok/operations.hpp>
41 #include <lutok/state.ipp>
63 lua_fs_basename(lutok::state& state)
83 lua_fs_dirname(lutok::state& state)
103 lua_fs_exists(lutok::state& state)
127 files_iterator(lutok::state& state)
152 files_gc(lutok::state& state)
177 lua_fs_files(lutok::state& state)
214 lua_fs_is_absolute(lutok::state& state)
235 lua_fs_join(lutok::state& state
    [all...]
  /src/external/bsd/lutok/dist/
c_gate.cpp 37 lutok::state_c_gate::state_c_gate(state& state_) :
48 lutok::state_c_gate::~state_c_gate(void)
62 lutok::state
63 lutok::state_c_gate::connect(lua_State* raw_state)
73 lutok::state_c_gate::c_state(void)
debug.cpp 33 #include <lutok/c_gate.hpp>
34 #include <lutok/debug.hpp>
35 #include <lutok/exceptions.hpp>
36 #include <lutok/state.ipp>
39 /// Internal implementation for lutok::debug.
40 struct lutok::debug::impl {
47 lutok::debug::debug(void) :
54 lutok::debug::~debug(void)
67 lutok::debug::get_info(state& s, const std::string& what_)
72 throw lutok::api_error::from_stack(s, "lua_getinfo")
    [all...]
exceptions.cpp 41 lutok::error::error(const std::string& message) :
48 lutok::error::~error(void) throw()
57 lutok::api_error::api_error(const std::string& api_function_,
66 lutok::api_error::~api_error(void) throw()
80 lutok::api_error
81 lutok::api_error::from_stack(state& state_, const std::string& api_function_)
83 lua_State* raw_state = lutok::state_c_gate(state_).c_state();
88 return lutok::api_error(api_function_, message);
96 lutok::api_error::api_function(void) const
105 lutok::file_not_found_error::file_not_found_error
    [all...]
operations_test.cpp 53 hook_add(lutok::state& state)
70 hook_multiply(lutok::state& state)
83 lutok::state state;
84 std::map< std::string, lutok::cxx_function > members;
85 lutok::create_module(state, "my_math", members);
88 lutok::do_string(state, "return next(my_math) == nil", 1);
97 lutok::state state;
98 std::map< std::string, lutok::cxx_function > members;
100 lutok::create_module(state, "my_math", members);
102 lutok::do_string(state, "return my_math.add(10, 20)", 1)
    [all...]
state.cpp 139 call_cxx_function_from_c(lutok::cxx_function function,
145 lutok::state state = lutok::state_c_gate::connect(raw_state);
176 lutok::state state = lutok::state_c_gate::connect(raw_state);
186 lutok::cxx_function* function = state.to_userdata< lutok::cxx_function >(
205 lutok::state state = lutok::state_c_gate::connect(raw_state);
206 lutok::cxx_function* function = state.to_userdata< lutok::cxx_function >
    [all...]
debug_test.cpp 41 lutok::state state;
44 lutok::debug debug;
53 lutok::state state;
55 lutok::debug debug;
stack_cleaner.cpp 36 /// Internal implementation for lutok::stack_cleaner.
37 struct lutok::stack_cleaner::impl {
62 lutok::stack_cleaner::stack_cleaner(state& state_) :
72 lutok::stack_cleaner::~stack_cleaner(void)
88 lutok::stack_cleaner::forget(void)
operations.hpp 39 #include <lutok/state.hpp>
41 namespace lutok { namespace
51 } // namespace lutok
stack_cleaner.hpp 37 #include <lutok/state.hpp>
39 namespace lutok { namespace
91 } // namespace lutok
test_utils.hpp 52 /// Checks that a given expression raises a particular lutok::api_error.
66 } catch (const lutok::api_error& api_error) { \
80 raw(lutok::state& state)
82 return lutok::state_c_gate(state).c_state();
94 lutok::state& _state;
110 stack_balance_checker(lutok::state& state_,
stack_cleaner_test.cpp 37 lutok::state state;
39 lutok::stack_cleaner cleaner(state);
49 lutok::state state;
51 lutok::stack_cleaner cleaner(state);
64 lutok::state state;
66 lutok::stack_cleaner cleaner1(state);
71 lutok::stack_cleaner cleaner2(state);
87 lutok::state state;
89 lutok::stack_cleaner cleaner(state);
  /src/external/bsd/lutok/share/examples/
Makefile 3 SUBDIR= lutok
  /src/external/bsd/lutok/dist/examples/
hello.cpp 34 #include <lutok/state.ipp>
45 lutok::state state;
interpreter.cpp 36 #include <lutok/exceptions.hpp>
37 #include <lutok/operations.hpp>
38 #include <lutok/state.ipp>
46 run_statement(lutok::state& state, const std::string& line)
53 lutok::do_string(state, line);
54 } catch (const lutok::error& error) {
67 lutok::state state;
raii.cpp 39 /// Enter RAII. The RAII pattern, intensively applied by Lutok, helps the
48 #include <lutok/operations.hpp>
49 #include <lutok/stack_cleaner.hpp>
50 #include <lutok/state.ipp>
63 print_table_field(lutok::state& state, const std::string& field)
74 lutok::stack_cleaner cleaner(state);
113 lutok::state state;
116 lutok::do_string(state, "example = {foo='hello', bar=123, baz='bye'}");
bindings.cpp 34 /// purpose of this example program is to show how this is done by using Lutok.
44 #include <lutok/exceptions.hpp>
45 #include <lutok/operations.hpp>
46 #include <lutok/state.ipp>
77 /// Lutok will convert this exception to lutok::error.
79 lua_factorial(lutok::state& state)
107 lutok::state state;
115 std::map< std::string, lutok::cxx_function > module;
117 lutok::create_module(state, "native", module)
    [all...]
  /src/external/bsd/kyua-cli/dist/utils/config/
lua_module.hpp 37 #include "lutok/state.hpp"
46 void redirect(lutok::state&, tree&);
lua_module_test.cpp 33 #include <lutok/exceptions.hpp>
34 #include <lutok/operations.hpp>
35 #include <lutok/state.ipp>
79 push_lua(lutok::state& state) const
89 set_lua(lutok::state& state, const int value_index)
133 lutok::state state;
135 lutok::do_string(state,
155 lutok::state state;
157 lutok::do_string(state, "first = 100; second = first * 2");
172 lutok::state state
    [all...]
nodes.hpp 39 #include <lutok/state.hpp>
109 virtual void push_lua(lutok::state& state) const = 0;
118 virtual void set_lua(lutok::state& state, const int value_index) = 0;
206 void push_lua(lutok::state&) const;
207 void set_lua(lutok::state&, const int);
216 void push_lua(lutok::state&) const;
217 void set_lua(lutok::state&, const int);
226 void push_lua(lutok::state&) const;
227 void set_lua(lutok::state&, const int);
276 void push_lua(lutok::state&) const
    [all...]
parser.cpp 31 #include <lutok/exceptions.hpp>
32 #include <lutok/operations.hpp>
33 #include <lutok/stack_cleaner.hpp>
34 #include <lutok/state.ipp>
60 lutok::state _state;
78 friend void lua_syntax(lutok::state&);
119 lua_syntax(lutok::state& state)
157 lutok::stack_cleaner cleaner(_pimpl->_state);
185 lutok::do_file(_pimpl->_state, file.str());
186 } catch (const lutok::error& e)
    [all...]
  /src/external/bsd/lutok/lib/liblutok/
Makefile 7 LIB= lutok
13 SRCDIR= ${NETBSDSRCDIR}/external/bsd/lutok/dist
38 INCSDIR= /usr/include/lutok
41 FILES+= lutok.pc
45 realall: lutok.pc
46 lutok.pc: Makefile lutok.pc.in
53 <${SRCDIR}/lutok.pc.in >lutok.pc
54 CLEANFILES+= lutok.p
    [all...]
  /src/external/bsd/lutok/share/examples/lutok/
Makefile 5 SRCDIR= ${NETBSDSRCDIR}/external/bsd/lutok/dist
8 FILESDIR= /usr/share/examples/lutok

Completed in 25 milliseconds

1 2 3