aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2026-03-09 16:23:03 -0300
committerRoberto I <roberto@inf.puc-rio.br>2026-03-09 16:23:03 -0300
commit9e501d9855e560b08c50fb0cf6e147af93bb497e (patch)
treea046f92754531ed18cfaa8480cd39f3d9ea70e7e /manual
parent10eb89d1141dc528806b32401e408e36fb2f3bf5 (diff)
downloadlua-9e501d9855e560b08c50fb0cf6e147af93bb497e.tar.gz
lua-9e501d9855e560b08c50fb0cf6e147af93bb497e.tar.bz2
lua-9e501d9855e560b08c50fb0cf6e147af93bb497e.zip
Slightly better documentation for LUAI_MAXALIGN
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of8
1 files changed, 6 insertions, 2 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 18c187f4..5eb2fb1f 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -3915,8 +3915,12 @@ like any Lua object.
3915This function creates and pushes on the stack a new full userdata, 3915This function creates and pushes on the stack a new full userdata,
3916with @id{nuvalue} associated Lua values, called @id{user values}, 3916with @id{nuvalue} associated Lua values, called @id{user values},
3917plus an associated block of raw memory with @id{size} bytes. 3917plus an associated block of raw memory with @id{size} bytes.
3918(The user values can be set and read with the functions 3918
3919@Lid{lua_setiuservalue} and @Lid{lua_getiuservalue}.) 3919The user values can be set and read with the functions
3920@Lid{lua_setiuservalue} and @Lid{lua_getiuservalue}.
3921The block of memory is suitably aligned for any @N{ISO C} object.
3922(See macro @id{LUAI_MAXALIGN} in file @id{luaconf.h} for other
3923alignment requirements.)
3920 3924
3921The function returns the address of the block of memory. 3925The function returns the address of the block of memory.
3922Lua ensures that this address is valid as long as 3926Lua ensures that this address is valid as long as