Changeset 79 for trunk/tests


Ignore:
Timestamp:
06/02/13 00:53:25 (12 years ago)
Author:
epyon
Message:
  • lua::state::do_string can take a returns parameter
  • lua::state::load_* functions made private (for now?)
File:
1 edited

Legend:

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

    r78 r79  
    5353                        std::cout << "> " << input << std::endl;
    5454
    55                         int code = luaL_loadstring( state.get_raw(), input.c_str() );
    56                         if (code == 0) code = lua_pcall( state.get_raw(), 0, LUA_MULTRET, 0);
    57                         if (code != 0)
     55                        bool result = state.do_string( input, "", nv::lua::ret_multi );
     56                        if ( !result )
    5857                        {
    5958                                std::string error = lua_tostring( state.get_raw(), -1 );
Note: See TracChangeset for help on using the changeset viewer.