Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/defold/extension-lua-preprocessor
Small and simple Lua preprocessor for Defold
https://github.com/defold/extension-lua-preprocessor
antlr4 defold defold-library lua preprocessor
Last synced: 4 months ago
JSON representation
Small and simple Lua preprocessor for Defold
- Host: GitHub
- URL: https://github.com/defold/extension-lua-preprocessor
- Owner: defold
- License: mit
- Created: 2022-11-14T09:25:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T07:24:47.000Z (11 months ago)
- Last Synced: 2024-10-04T22:07:34.405Z (4 months ago)
- Topics: antlr4, defold, defold-library, lua, preprocessor
- Language: Java
- Homepage:
- Size: 127 KB
- Stars: 13
- Watchers: 6
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-defold - Lua Preprocessor
README
# extension-lua-preprocessor
A small and simple Lua preprocessor for Defold. This extension hooks into the [Lua builder plugin system in bob](https://github.com/defold/defold/blob/cb60610ba7c4683267a2abd509340507105ef3bb/com.dynamo.cr/com.dynamo.cr.bob/src/com/dynamo/bob/pipeline/LuaBuilder.java#L94).## 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](https://github.com/defold/extension-lua-preprocessor/releases)## Example
```lua
-- Use one of the following keywords: RELEASE, DEBUG or HEADLESS
--#IF DEBUG
local lives_num = 999
--#ELSE
local lives_num = 3
--#ENDIF
```
---
If you have any issues, questions or suggestions please [create an issue](https://github.com/defold/extension-lua-preprocessor/issues)