Skip to content

defold/extension-lua-preprocessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extension-lua-preprocessor

A small and simple Lua preprocessor for Defold. This extension hooks into the Lua builder plugin system in bob.

Requirements

Defold version 1.4.2 or higher

Installation

To use this library in your Defold project, add the needed version URL to your game.project dependencies from Releases

image

Example

-- Use one of the following keywords: RELEASE, DEBUG or HEADLESS
--#IF DEBUG
local lives_num = 999
--#ELSE 
local lives_num = 3
--#ENDIF

You can also use --DEBUG_ASSERT(...) to include asserts only in debug builds:

--DEBUG_ASSERT(player_lives > 0)

If you have any issues, questions or suggestions please create an issue