Changeset 491 for trunk/nv/lua/lua_values.hh
- Timestamp:
- 04/29/16 12:42:28 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/lua/lua_values.hh
r449 r491 140 140 141 141 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 <> 142 150 struct pass_traits<bool> 143 151 { … … 202 210 struct lua_type_impl< T, enable_if_t< is_floating_point< T >::value > > 203 211 { 204 typedef lnumbertype;212 typedef T type; 205 213 }; 206 214
Note: See TracChangeset
for help on using the changeset viewer.