foxygit / fake-08-xbox360 Log in
commit 28225fe74515e46f036dabc46beca4c4cbdcd808
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Thu Nov 12 20:23:21 2020 -0700
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Thu Nov 12 20:23:21 2020 -0700

    Mark most of API as local per zep tweet
---
 source/p8GlobalLuaFunctions.h | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/source/p8GlobalLuaFunctions.h b/source/p8GlobalLuaFunctions.h
index e6c2718..fa54155 100644
--- a/source/p8GlobalLuaFunctions.h
+++ b/source/p8GlobalLuaFunctions.h
@@ -92,6 +92,29 @@ function menuitem()
 --noop placeholder for now
 end

+--https://twitter.com/lexaloffle/status/1314463271324315649
+--save host cpu by making most of the api local
+local
+time, t, sub, chr, ord, tostr, tonum,
+add, del, deli, clip, color, pal, palt,
+fillp, pget, pset, sget, sset, fget,
+fset, circ, circfill, rect, rectfill, oval,
+ovalfill, line, spr, sspr, mget, mset,
+tline, peek, poke, peek2, poke2, peek4,
+poke4, memcpy, memset, max, min, mid, flr,
+ceil, cos, sin, atan2, rnd, srand, band,
+bor, bxor, bnot, shl, shr, lshr, rotl, rotr =
+
+time, t, sub, chr, ord, tostr, tonum,
+add, del, deli, clip, color, pal, palt,
+fillp, pget, pset, sget, sset, fget,
+fset, circ, circfill, rect, rectfill, oval,
+ovalfill, line, spr, sspr, mget, mset,
+tline, peek, poke, peek2, poke2, peek4,
+poke4, memcpy, memset, max, min, mid, flr,
+ceil, cos, sin, atan2, rnd, srand, band,
+bor, bxor, bnot, shl, shr, lshr, rotl, rotr
+
 )#";