Ignore:
Timestamp:
07/15/13 20:13:27 (12 years ago)
Author:
epyon
Message:
  • flags - flags support, essentially a std::bitset implementation with .data() method and enum class support
File:
1 edited

Legend:

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

    r121 r162  
    279279}
    280280
     281void lua::table_guard::get_raw_flags( const std::string& element, uint8* data, uint32 count )
     282{
     283        lua_getfield( L->L, -1, element.c_str() );
     284        if ( lua_type( L->L, -1 ) != LUA_TTABLE )
     285        {
     286                lua_pop( L->L, 1 );
     287                return;
     288        }
     289        nlua_toflags( L->L, -1, data, count );
     290        lua_pop( L->L, 1 );
     291}
     292
     293
    281294void lua::state::log_stack()
    282295{
Note: See TracChangeset for help on using the changeset viewer.