Ignore:
Timestamp:
09/09/13 20:04:42 (12 years ago)
Author:
epyon
Message:
  • lua/state - upvalue_index moved to lua/values
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/lualib_test/lualib_test.cc

    r99 r213  
    11#include <nv/lib/lua.hh>
    22#include <nv/lua/lua_state.hh>
     3#include <nv/lua/lua_dispatch.hh>
    34#include <nv/lua/lua_raw.hh>
    45#include <nv/lua/lua_glm.hh>
     
    1011#include <functional>
    1112#include <nv/gui/gui_element.hh>
     13
     14void hello( const std::string& h )
     15{
     16        std::cout << h << " world from C++!" << std::endl;
     17}
     18
    1219
    1320int main(int, char* [])
     
    2229        {
    2330                nv::lua::state state( true );
    24                 nlua_register_glm( state );
     31                nv::lua::register_glm( state );
    2532                // run the Lua script
     33                state.register_function<decltype(hello),&hello>( "hello" );
    2634                state.do_file( "init.lua" );
     35                //std::cout << nv::function_traits<decltype(hello)>::arg_count << std::endl;
    2736
    2837                log.set_level( nv::LOG_INFO );
Note: See TracChangeset for help on using the changeset viewer.