strc-usr.lua /size: 817 b    last modification: 2020-07-01 14:35
1
if
not
modules
then
modules
=
{
}
end
modules
[
'
strc-usr
'
]
=
{
2
version
=
1
.
000
,
3
comment
=
"
companion to strc-usr.mkiv
"
,
4
author
=
"
Wolfgang Schuster
"
,
5
copyright
=
"
PRAGMA ADE / ConTeXt Development Team
"
,
6
license
=
"
see context related readme files
"
7
}
8 9
-- The following is copied from \type {tabl-xtb.lua} to make the userdata environment
10
-- work with \LUA\ documents.
11 12
local
context
=
context
13
local
ctxcore
=
context
.
core
14 15
local
startuserdata
=
ctxcore
.
startuserdata
16
local
stopuserdata
=
ctxcore
.
stopuserdata
17 18
local
startcollecting
=
context
.
startcollecting
19
local
stopcollecting
=
context
.
stopcollecting
20 21
function
ctxcore
.
startuserdata
(
...
)
22
startcollecting
(
)
23
startuserdata
(
...
)
24
end
25 26
function
ctxcore
.
stopuserdata
(
)
27
stopuserdata
(
)
28
stopcollecting
(
)
29
end
30