From 266de35f87161f841c26ab18a044cdf0a02682ad Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 30 Jan 2023 10:20:37 -0800 Subject: create a place for graphical log handlers Currently only used in pong.love, but let's keep the bad merge that had it broken since September from occurring again. To do that we'll be consistent across forks on where globals are initialized. I haven't appreciated the implications of main.lua for load order. log.lua comes first just because it's shared by both the main app and its 'source' editing environment. And it just so happens that source.lua was loading after log.lua resulting in the pong.love breakage. Now let's lean into that and enshrine that one should initialize log_render in log.lua. --- log.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'log.lua') diff --git a/log.lua b/log.lua index f59449c..6bbd0c4 100644 --- a/log.lua +++ b/log.lua @@ -31,4 +31,7 @@ function log_new(name, stack_frame_index) log_start(name, stack_frame_index) end +-- rendering graphical objects within sections/boxes +log_render = {} + -- vim:noexpandtab -- cgit 1.4.1-2-gfad0