Ignore:
Timestamp:
06/02/13 18:38:01 (12 years ago)
Author:
epyon
Message:
  • lua::state constructors made explicit
  • lua::state can implicitly cast to lua_State*
File:
1 edited

Legend:

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

    r79 r86  
    1717lua::stack_guard::stack_guard( lua::state* L )
    1818        : L(L), m_level( lua_gettop(L->L) )
     19{
     20
     21}
     22
     23lua::stack_guard::stack_guard( lua::state& L )
     24        : L(&L), m_level( lua_gettop((&L)->L) )
    1925{
    2026
Note: See TracChangeset for help on using the changeset viewer.