This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local M = {} | |
function M.on_build_started(opts) | |
local file = io.open("version.txt", "w") | |
file:write("version: " .. editor.version, "\n") | |
file:write("sha1: " .. editor.engine_sha1, "\n") | |
file:close() | |
end | |
return M |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test compile | |
typedef double lua_Number; | |
typedef struct {} lua_State; | |
void lua_pushnumber (lua_State *L, lua_Number n) {} | |
void lua_setfield (lua_State *L, int index, const char *k) {} | |
// test | |
#include <stdlib.h> | |
#include <string.h> |