Add Fennel as an option for creating games.
This commit is contained in:
@@ -566,6 +566,10 @@ void tic_close(tic_mem* tic)
|
||||
getMoonScriptConfig()->close(tic);
|
||||
# endif
|
||||
|
||||
# if defined(TIC_BUILD_WITH_FENNEL)
|
||||
getFennelConfig()->close(tic);
|
||||
# endif
|
||||
|
||||
#endif /* defined(TIC_BUILD_WITH_LUA) */
|
||||
|
||||
|
||||
@@ -1566,6 +1570,11 @@ static const tic_script_config* getScriptConfig(const char* code)
|
||||
return getMoonScriptConfig();
|
||||
#endif
|
||||
|
||||
#if defined(TIC_BUILD_WITH_FENNEL)
|
||||
if(compareMetatag(code, "script", "fennel", getFennelConfig()->singleComment))
|
||||
return getFennelConfig();
|
||||
#endif
|
||||
|
||||
#if defined(TIC_BUILD_WITH_JS)
|
||||
if(compareMetatag(code, "script", "js", getJsScriptConfig()->singleComment) ||
|
||||
compareMetatag(code, "script", "javascript", getJsScriptConfig()->singleComment))
|
||||
|
||||
Reference in New Issue
Block a user