Ignore:
Timestamp:
08/12/14 01:51:21 (11 years ago)
Author:
epyon
Message:
  • lua_state - state_wrapper::get functions with default values
  • lua_values - support for value get with default
  • lua_state - table error logging (need real handling)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_state.cc

    r296 r305  
    118118        m_global = false;
    119119        m_level  = lua_gettop( m_state );
    120         if ( !p.resolve( m_state, global ) )
    121         {
     120        if ( !p.resolve( m_state, global ) || lua_type(m_state, -1) != LUA_TTABLE )
     121        {
     122                NV_LOG( LOG_ERROR, "Could not resolve table!" );
    122123                // TODO : error handling
    123124        }
     
    129130        m_global = false;
    130131        m_level  = lua_gettop( m_state );
    131         if ( !p.resolve( m_state, false ) )
    132         {
     132        if ( !p.resolve( m_state, false ) || lua_type(m_state, -1) != LUA_TTABLE )
     133        {
     134                NV_LOG( LOG_ERROR, "Could not resolve table!" );
    133135                // TODO : error handling
    134136        }
Note: See TracChangeset for help on using the changeset viewer.