Skip to content

Releases: ReFreezed/LuaPreprocess

Version 1.5

22 Feb 13:09

Choose a tag to compare

  • Changed/improved !!... (see below).
  • Fixed an internal 'trying to call nil' error.

Dual code preprocessor lines must now be assignments. The value expression is now evaluated in the metaprogram before being outputted into the generated program. Example:

-- Input:
!local two = 2
!!local x = 1+two

-- Metaprogram:
local two = 2
local x = 1+two
outputLua("local x = ")
outputValue(x)

-- Generated program:
local x = 3

Version 1.4

16 Jan 14:45

Choose a tag to compare

  • Added support for Lua 5.2 and 5.3.
  • Fixed some error handling stuff.

Version 1.3.1

09 Jan 01:17

Choose a tag to compare

Fixed returned value from params.onAfterMeta() not getting used.

Version 1.3

05 Jan 01:48

Choose a tag to compare

  • Added info.linesOfCode to processFile()/processString().
  • --saveinfo option now saves all info that processFile() returns for each file.
  • Added concatTokens().

Version 1.2

03 Jan 19:57

Choose a tag to compare

Added preprocess.processString().

Version 1.1.1

01 Jan 23:25

Choose a tag to compare