------------------------------------------------------------------------------
| 409 | } |
| 410 | //------------------------------------------------------------------------------ |
| 411 | inline Str CheckString(NativeState h,int index) |
| 412 | { |
| 413 | // return Str(luaL_checkstring(h,index)); |
| 414 | |
| 415 | #ifdef _LUAPP_CHECK_DATA_TYPE_ |
| 416 | if ( lua_type(h, index)!=LUA_TSTRING ) |
| 417 | { |
| 418 | lua::Log<<"error:lua::CheckString"<<lua::End; |
| 419 | return Str("none"); |
| 420 | } |
| 421 | #endif |
| 422 | |
| 423 | return lua_tostring(h,index); |
| 424 | } |
| 425 | //------------------------------------------------------------------------------ |
| 426 | inline void* CheckUserData(NativeState h,int index) |
| 427 | { |
no test coverage detected