.clang-format updates
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "luainterp.cpp"
|
||||
#include "lualibts.cpp"
|
||||
lua_State *gL;
|
||||
lua_State* gL;
|
||||
#include "tsliblua.cpp"
|
||||
|
||||
// Global variables
|
||||
@@ -22,9 +22,9 @@ lua_State *gL;
|
||||
// Setup
|
||||
|
||||
// Hack to encode the contents of text files as static strings
|
||||
#define INCLUDE_BIN(varname, filename) \
|
||||
asm("_" #varname ": .incbin \"" filename "\""); \
|
||||
asm(".byte 0"); \
|
||||
#define INCLUDE_BIN(varname, filename) \
|
||||
asm("_" #varname ": .incbin \"" filename "\""); \
|
||||
asm(".byte 0"); \
|
||||
extern char varname[];
|
||||
INCLUDE_BIN(bll_fileLuaEnvSafe, "lua-env-safe.lua");
|
||||
INCLUDE_BIN(bll_fileLuaEnv, "lua-env.lua");
|
||||
@@ -39,10 +39,10 @@ INCLUDE_BIN(bll_fileLuaLibblTypes, "util/libbl-types.lua");
|
||||
INCLUDE_BIN(bll_fileTsLibblSupport, "util/libbl-support.cs");
|
||||
INCLUDE_BIN(bll_fileLoadaddons, "util/loadaddons.cs");
|
||||
|
||||
#define BLL_LOAD_LUA(lstate, vname) \
|
||||
if (!bll_LuaEval(lstate, vname)) { \
|
||||
BlPrintf(" Error executing " #vname); \
|
||||
return false; \
|
||||
#define BLL_LOAD_LUA(lstate, vname) \
|
||||
if (!bll_LuaEval(lstate, vname)) { \
|
||||
BlPrintf(" Error executing " #vname); \
|
||||
return false; \
|
||||
}
|
||||
|
||||
bool init() {
|
||||
@@ -65,9 +65,8 @@ bool init() {
|
||||
#endif
|
||||
|
||||
// Expose Lua API to TS
|
||||
BlAddFunction(NULL, NULL, "_bllua_luacall", bll_ts_luacall,
|
||||
"LuaCall(name, ...) - Call Lua function and return result", 2,
|
||||
20);
|
||||
BlAddFunction(
|
||||
NULL, NULL, "_bllua_luacall", bll_ts_luacall, "LuaCall(name, ...) - Call Lua function and return result", 2, 20);
|
||||
BlEval(bll_fileTsEnv);
|
||||
|
||||
// Load utilities
|
||||
@@ -103,7 +102,7 @@ bool deinit() {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool __stdcall DllMain(HINSTANCE hinstance, DWORD reason, void *reserved) {
|
||||
bool __stdcall DllMain(HINSTANCE hinstance, DWORD reason, void* reserved) {
|
||||
switch (reason) {
|
||||
case DLL_PROCESS_ATTACH:
|
||||
return init();
|
||||
|
||||
Reference in New Issue
Block a user