only ANSI way to check whether a pointer points to an array */
| 557 | |
| 558 | /* only ANSI way to check whether a pointer points to an array */ |
| 559 | static int isinstack (CallInfo *ci, const TValue *o) { |
| 560 | StkId p; |
| 561 | for (p = ci->base; p < ci->top; p++) |
| 562 | if (o == p) return 1; |
| 563 | return 0; |
| 564 | } |
| 565 | |
| 566 | |
| 567 | void luaG_typeerror (lua_State *L, const TValue *o, const char *op) { |