16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 18:19:19 +02:00

lua write error

This commit is contained in:
milek7
2018-03-21 20:06:26 +01:00
parent 479498cedc
commit 9b602686a2
4 changed files with 13 additions and 5 deletions

View File

@@ -29,6 +29,7 @@ const char lua_ffi[] = "local ffi = require(\"ffi\")\n"
"\n"
"double scriptapi_random(double a, double b);\n"
"void scriptapi_writelog(const char* txt);\n"
"void scriptapi_writeerrorlog(const char* txt);\n"
"]]\n"
"\n"
"local ns = ffi.C\n"
@@ -88,4 +89,5 @@ const char lua_ffi[] = "local ffi = require(\"ffi\")\n"
"\n"
"module.random = ns.scriptapi_random\n"
"module.writelog = ns.scriptapi_writelog\n"
"module.writeerrorlog = ns.scriptapi_writeerrorlog\n"
"\nreturn module\n";