Ignore:
Timestamp:
07/30/15 14:06:24 (10 years ago)
Author:
epyon
Message:
  • metatable types cleanup
  • fix for nlua_typecontent
File:
1 edited

Legend:

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

    r445 r449  
    2323}
    2424
    25 void* nv::lua::detail::check_userdata( lua_State *L, int index, const char* metatable )
     25void* nv::lua::detail::raw_check_userdata( lua_State *L, int index, const char* metatable )
    2626{
    2727        return luaL_checkudata( L, index, metatable );
    2828}
    2929
    30 void* nv::lua::detail::allocate_userdata( lua_State *L, size_t size, const char* metatable )
     30void* nv::lua::detail::raw_allocate_userdata( lua_State *L, size_t size, const char* metatable )
    3131{
    3232        void* result = lua_newuserdata(L, size);
     
    6363{
    6464        lua_pushboolean( L, v );
    65 }
    66 
    67 void nv::lua::detail::push_cstring ( lua_State *L, const char* s )
    68 {
    69         lua_pushstring( L, s );
    7065}
    7166
     
    105100        return lua_toboolean( L, index ) != 0;
    106101}
    107 
    108 // const char* nv::lua::detail::to_cstring ( lua_State *L, int index )
    109 // {
    110 //      return lua_tolstring( L, index, nullptr );
    111 // }
    112102
    113103nv::string_view nv::lua::detail::to_string_view( lua_State *L, int index )
     
    164154}
    165155
    166 // const char* nv::lua::detail::to_cstring ( lua_State *L, int index, const char* def )
    167 // {
    168 //      return ( lua_type( L, index ) == LUA_TSTRING ? lua_tostring( L, index ) : def );
    169 // }
    170 
    171156void*       nv::lua::detail::to_pointer ( lua_State *L, int index, void* def )
    172157{
Note: See TracChangeset for help on using the changeset viewer.