{"id":15722462,"url":"https://github.com/defold/extension-lua-preprocessor","last_synced_at":"2026-01-18T23:06:49.167Z","repository":{"id":146435054,"uuid":"565763402","full_name":"defold/extension-lua-preprocessor","owner":"defold","description":"Small and simple Lua preprocessor for Defold","archived":false,"fork":false,"pushed_at":"2024-02-27T07:24:47.000Z","size":130,"stargazers_count":13,"open_issues_count":3,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-01-30T15:25:12.069Z","etag":null,"topics":["antlr4","defold","defold-library","lua","preprocessor"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/defold.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-11-14T09:25:10.000Z","updated_at":"2024-10-01T21:20:51.000Z","dependencies_parsed_at":"2024-02-27T09:46:01.597Z","dependency_job_id":null,"html_url":"https://github.com/defold/extension-lua-preprocessor","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fextension-lua-preprocessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fextension-lua-preprocessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fextension-lua-preprocessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fextension-lua-preprocessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defold","download_url":"https://codeload.github.com/defold/extension-lua-preprocessor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237267975,"owners_count":19282320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["antlr4","defold","defold-library","lua","preprocessor"],"created_at":"2024-10-03T22:07:50.511Z","updated_at":"2026-01-18T23:06:49.163Z","avatar_url":"https://github.com/defold.png","language":"Java","readme":"# extension-lua-preprocessor\nA 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).\n\n## Requirements\n\nDefold version 1.4.2 or higher\n\n## Installation\nTo 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)\n\n\u003cimg width=\"401\" alt=\"image\" src=\"https://user-images.githubusercontent.com/2209596/202223571-c77f0304-5202-4314-869d-7a90bbeec5ec.png\"\u003e\n\n## Example\n\n```lua\n-- Use one of the following keywords: RELEASE, DEBUG or HEADLESS\n--#IF DEBUG\nlocal lives_num = 999\n--#ELSE \nlocal lives_num = 3\n--#ENDIF\n```\n\nYou can also use `--DEBUG_ASSERT(...)` to include asserts only in debug builds:\n\n```lua\n--DEBUG_ASSERT(player_lives \u003e 0)\n```\n---\nIf you have any issues, questions or suggestions please [create an issue](https://github.com/defold/extension-lua-preprocessor/issues)\n","funding_links":[],"categories":["Tools"],"sub_categories":["Programming Language"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefold%2Fextension-lua-preprocessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefold%2Fextension-lua-preprocessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefold%2Fextension-lua-preprocessor/lists"}