test_implicit_raw.cpp 610 B

123456789101112131415161718192021222324252627
  1. // Copyright Daniel Wallin 2009. Use, modification and distribution is
  2. // subject to the Boost Software License, Version 1.0. (See accompanying
  3. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #include "test.hpp"
  5. #include <luabind/luabind.hpp>
  6. void raw_function(lua_State* L)
  7. {}
  8. void raw_function2(int, lua_State* L, int)
  9. {}
  10. void test_main(lua_State* L)
  11. {
  12. using namespace luabind;
  13. module(L) [
  14. def("raw_function", &raw_function),
  15. def("raw_function2", &raw_function2)
  16. ];
  17. DOSTRING(L,
  18. "raw_function()\n"
  19. "raw_function2(1,2)\n"
  20. );
  21. }