strc-usr.lua /size: 817 b    last modification: 2020-07-01 14:35
1if 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
12local context         = context
13local ctxcore         = context.core
14
15local startuserdata   = ctxcore.startuserdata
16local stopuserdata    = ctxcore.stopuserdata
17
18local startcollecting = context.startcollecting
19local stopcollecting  = context.stopcollecting
20
21function ctxcore.startuserdata(...)
22    startcollecting()
23    startuserdata(...)
24end
25
26function ctxcore.stopuserdata()
27    stopuserdata()
28    stopcollecting()
29end
30