summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/strc-usr.lua
blob: f121fe296a713bfe366a490835302c7789f70cad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if not modules then modules = { } end modules ['strc-usr'] = {
    version   = 1.000,
    comment   = "companion to strc-usr.mkiv",
    author    = "Wolfgang Schuster",
    copyright = "PRAGMA ADE / ConTeXt Development Team",
    license   = "see context related readme files"
}

-- The following is copied from \type {tabl-xtb.lua} to make the userdata environment
-- work with \LUA\ documents.

local context         = context
local ctxcore         = context.core

local startuserdata   = ctxcore.startuserdata
local stopuserdata    = ctxcore.stopuserdata

local startcollecting = context.startcollecting
local stopcollecting  = context.stopcollecting

function ctxcore.startuserdata(...)
    startcollecting()
    startuserdata(...)
end

function ctxcore.stopuserdata()
    stopuserdata()
    stopcollecting()
end