about summary refs log tree commit diff stats
path: root/src/notes
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-10-24 10:32:22 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-10-24 10:32:22 -0700
commitd8fcd648d79552e42ceea94a567743317ac08251 (patch)
tree6299eef2682b0bca6f938d8501154b0688ddcb3c /src/notes
parent4a0822929b20f3a8fc5627d71527871fa7e39f7b (diff)
downloadteliva-d8fcd648d79552e42ceea94a567743317ac08251.tar.gz
ok, starting to make sense now
Putting together two resources:
  https://lucasklassmann.com/blog/2019-02-02-how-to-embeddeding-lua-in-c/#exposing-a-simple-variable
  https://www.lua.org/manual/5.3/manual.html, section 2.1, "Values and Types", particularly the description of light user data.

And lo, I see lua_pushlightuserdata in lapi.c
Diffstat (limited to 'src/notes')
-rw-r--r--src/notes4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/notes b/src/notes
index 4a4487b..6f609ff 100644
--- a/src/notes
+++ b/src/notes
@@ -14,6 +14,4 @@ initializing a lua_State (lua_newstate)
   next = NULL
   stack = NULL
 
-== todo stack
-where are stack_last/base/top initialized?
-lua_State's stack
+Lua's stack vs globals: https://lucasklassmann.com/blog/2019-02-02-how-to-embeddeding-lua-in-c/#exposing-a-simple-variable