diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-10-24 10:32:22 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-10-24 10:32:22 -0700 |
commit | d8fcd648d79552e42ceea94a567743317ac08251 (patch) | |
tree | 6299eef2682b0bca6f938d8501154b0688ddcb3c | |
parent | 4a0822929b20f3a8fc5627d71527871fa7e39f7b (diff) | |
download | teliva-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
-rw-r--r-- | src/notes | 4 |
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 |