[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: question about callTMres
- From: Antero Vipunen <antero@...>
- Date: Tue, 07 Feb 2006 18:33:45 +0600
Hi,
I noticed a strange code in lvm.c
> static void callTMres ([skipped]) {
> [skipped]
> setobj2s(L, L->top, f); /* push function */
> setobj2s(L, L->top+1, p1); /* 1st argument */
> setobj2s(L, L->top+2, p2); /* 2nd argument */
> luaD_checkstack(L, 3);
Why to check stack _after_ not _before_ ``pushing''?
TIA,
Antero Vipunen.