Removed macro 'changeage'

It is simpler to use always 'setage'. The saving from 'changeage'
is too irrelevant.
This commit is contained in:
Roberto Ierusalimschy
2023-12-01 16:42:01 -03:00
parent b719ff9399
commit 74b4013538
2 changed files with 12 additions and 14 deletions

2
lgc.h
View File

@@ -120,8 +120,6 @@
#define setage(o,a) ((o)->marked = cast_byte(((o)->marked & (~AGEBITS)) | a))
#define isold(o) (getage(o) > G_SURVIVAL)
#define changeage(o,f,t) \
check_exp(getage(o) == (f), (o)->marked ^= ((f)^(t)))
/*
** In generational mode, objects are created 'new'. After surviving one