"dofile" and "dostring" may return values.

This commit is contained in:
Roberto Ierusalimschy
1996-09-24 14:30:28 -03:00
parent 7b8166d7b3
commit 6d383202dc
3 changed files with 27 additions and 15 deletions

View File

@@ -3,7 +3,7 @@
** TecCGraf - PUC-Rio
*/
char *rcs_opcode="$Id: opcode.c,v 3.73 1996/09/02 21:57:51 roberto Exp roberto $";
char *rcs_opcode="$Id: opcode.c,v 3.74 1996/09/20 12:51:16 roberto Exp roberto $";
#include <setjmp.h>
#include <stdio.h>
@@ -481,8 +481,7 @@ int luaI_dorun (TFunc *tf)
adjustC(1); /* one slot for the pseudo-function */
stack[CLS_current.base].tag = LUA_T_FUNCTION;
stack[CLS_current.base].value.tf = tf;
status = do_protectedrun(0);
adjustC(0);
status = do_protectedrun(MULT_RET);
return status;
}