| 352 | /////////////////////////////////////////////////////////////////////////////// |
| 353 | |
| 354 | static SkScalar lua2scalar(lua_State* L, int index) { |
| 355 | SkASSERT(lua_isnumber(L, index)); |
| 356 | return SkLuaToScalar(lua_tonumber(L, index)); |
| 357 | } |
| 358 | |
| 359 | static SkScalar lua2scalar_def(lua_State* L, int index, SkScalar defaultValue) { |
| 360 | if (lua_isnumber(L, index)) { |
no test coverage detected