Ignore:
Timestamp:
06/19/14 02:22:56 (11 years ago)
Author:
epyon
Message:
  • lua::ref lightweight wrapper class
  • allows distinction from int for templates
File:
1 edited

Legend:

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

    r262 r265  
    4040}
    4141
     42void nv::lua::detail::push_nil( lua_State *L )
     43{
     44        lua_pushnil( L );
     45}
     46
    4247void nv::lua::detail::push_unsigned( lua_State *L, lunsigned v )
    4348{
     
    7479        lua_pushlightuserdata( L, p );
    7580}
     81
     82void nv::lua::detail::push_ref_object ( lua_State *L, ref object )
     83{
     84        lua_rawgeti( L, LUA_REGISTRYINDEX, object.get() );
     85}
     86
    7687
    7788lunsigned   nv::lua::detail::to_unsigned( lua_State *L, int index )
Note: See TracChangeset for help on using the changeset viewer.