diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-10 15:36:54 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-10 15:36:54 -0200 |
commit | 8a0521fa529ce5091877683bc6f235ff8de7185b (patch) | |
tree | 309518c1d073c214e130d7634c2b5a24d7cf7ff6 /opcode.c | |
parent | 9deac27704eee47f858f6b41a386c3198bc49587 (diff) | |
download | lua-8a0521fa529ce5091877683bc6f235ff8de7185b.tar.gz lua-8a0521fa529ce5091877683bc6f235ff8de7185b.tar.bz2 lua-8a0521fa529ce5091877683bc6f235ff8de7185b.zip |
fallback for garbage collection
Diffstat (limited to 'opcode.c')
-rw-r--r-- | opcode.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** TecCGraf - PUC-Rio | 3 | ** TecCGraf - PUC-Rio |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_opcode="$Id: opcode.c,v 3.7 1994/11/09 18:13:29 roberto Exp roberto $"; | 6 | char *rcs_opcode="$Id: opcode.c,v 3.8 1994/11/10 17:11:52 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include <stdio.h> | 8 | #include <stdio.h> |
9 | #include <stdlib.h> | 9 | #include <stdlib.h> |
@@ -633,6 +633,13 @@ int lua_type (lua_Object o) | |||
633 | } | 633 | } |
634 | 634 | ||
635 | 635 | ||
636 | void luaI_gcFB (Object *o) | ||
637 | { | ||
638 | *(top++) = *o; | ||
639 | do_call(&luaI_fallBacks[FB_GC].function, (top-stack)-1, 0, (top-stack)-1); | ||
640 | } | ||
641 | |||
642 | |||
636 | static void call_arith (char *op) | 643 | static void call_arith (char *op) |
637 | { | 644 | { |
638 | lua_pushstring(op); | 645 | lua_pushstring(op); |