Ignore:
Timestamp:
04/29/16 12:42:28 (9 years ago)
Author:
epyon
Message:
  • mass update (will try to do atomic from now)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/lua/lua_values.hh

    r449 r491  
    140140
    141141                template <>
     142                struct pass_traits<float>
     143                {
     144                        static void push( lua_State *L, float s ) { detail::push_number( L, static_cast<double>( s ) ); }
     145                        static float to( lua_State *L, int index ) { return static_cast<float>( detail::to_number( L, index ) ); }
     146                        static float to( lua_State *L, int index, lnumber def ) { return static_cast<float>( detail::to_number( L, index, def ) ); }
     147                };
     148
     149                template <>
    142150                struct pass_traits<bool>
    143151                {
     
    202210                        struct lua_type_impl< T, enable_if_t< is_floating_point< T >::value > >
    203211                        {
    204                                 typedef lnumber type;
     212                                typedef T type;
    205213                        };
    206214
Note: See TracChangeset for help on using the changeset viewer.