Family Day update

This commit is contained in:
Ingy döt Net 2020-02-17 23:21:07 -08:00
parent aac6731f2c
commit 9ad63ea473
2442 changed files with 39761 additions and 8255 deletions

View file

@ -1,20 +1,3 @@
function isMainOrInclude()
-- returns 1 if called from the main file, 0 if from an include
integer res
#ilASM{
[32]
mov eax,[ebp+20] -- prev_ebp
mov eax,[eax+8] -- rtn
mov [res],eax
[64]
mov rax,[rbp+40] -- prev_ebp
mov rax,[rax+16] -- rtn
mov [res],rax
[]
}
return res=21 -- (21=T_maintls)
end function
--global (if you want to be able to call this from test.exw)
function hailstone(atom n)
sequence s = {n}
@ -42,7 +25,7 @@ integer count = 1
return count
end function
if isMainOrInclude() then
if include_file()==1 then
sequence s = hailstone(27)
integer ls = length(s)