| 3095 | } |
| 3096 | |
| 3097 | COMPAT53_API lua_Integer lua_tointegerx(lua_State *L, int i, int *isnum) { |
| 3098 | int ok = 0; |
| 3099 | lua_Number n = lua_tonumberx(L, i, &ok); |
| 3100 | if (ok) { |
| 3101 | if (n == (lua_Integer)n) { |
| 3102 | if (isnum) |
| 3103 | *isnum = 1; |
| 3104 | return (lua_Integer)n; |
| 3105 | } |
| 3106 | } |
| 3107 | if (isnum) |
| 3108 | *isnum = 0; |
| 3109 | return 0; |
| 3110 | } |
| 3111 | |
| 3112 | static void compat53_reverse(lua_State *L, int a, int b) { |
| 3113 | for (; a < b; ++a, --b) { |
nothing calls this directly
no test coverage detected