I found a temporary fix. The above syntax does work correctly, but there is
another issue. The program works as expected without pragma inline. I'll
report to kyle.
I can commit this change for now, but buildbot will fail unless compiled
with 2.4q.
--------------------------------------------------------------------------------
-- read the stopwatch (pseudo variable).
-- returns approximate time in micro seconds.
--------------------------------------------------------------------------------
function stopwatch'get() return byte*STOPWATCH_VAR_SIZE is
-- pragma inline
if STOPWATCH_VAR_SIZE == 2 then
return word(stopwatch_read_time())
else
return dword(stopwatch_read_time())
end if
end function
--------------------------------------------------------------------------------
-- read the stopwatch cycles (pseudo variable).
-- returns number of instructions cycles run.
--------------------------------------------------------------------------------
function stopwatch_cycles'get() return byte*STOPWATCH_VAR_SIZE is
-- pragma inline
if STOPWATCH_VAR_SIZE == 2 then
return word(stopwatch_read_cycles())
else
return dword(stopwatch_read_cycles())
end if
end function
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.