back-res.mkxl /size: 1371 b    last modification: 2021-10-28 13:50
1%D \module
2%D   [       file=back-res,
3%D        version=2019.05.23, % 2009.04.15,
4%D          title=\CONTEXT\ Backend Macros,
5%D       subtitle=Resources,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\writestatus{loading}{ConTeXt Backend Macros / Resources}
15
16\registerctxluafile{back-res}{autosuffix}
17
18\unprotect
19
20%D We overload the primitives with our own but use a bit of indirection for the
21%D purpose of tracing. Some of these are needed for packages like tikz.
22
23% todo: public implementors (we can update the lua code anyway)
24
25\permanent\protected\def\saveboxresource            {\clf_saveboxresource}
26%permanent\protected\def\lastsavedboxresourceindex  {\numexpr\clf_lastsavedboxresourceindex\relax}
27\permanent\protected\def\useboxresource             {\clf_useboxresource}
28
29\permanent\protected\def\saveimageresource          {\clf_saveimageresource}
30%permanent\protected\def\lastsavedimageresourceindex{\numexpr\clf_lastsavedimageresourceindex\relax}
31%permanent\protected\def\lastsavedimageresourcepages{\numexpr\clf_lastsavedimageresourcepages\relax}
32\permanent\protected\def\useimageresource           {\clf_useimageresource}
33
34\protect \endinput
35