Project

General

Profile

Bug #2063 » BoolReturnLog.patch

Marko Lindqvist, 07/03/2026 12:46 PM

View differences:

common/scriptcore/luascript.c
case API_TYPE_BOOL:
{
bool *pres = va_arg(args, bool*);
*pres = lua_toboolean(L, -1);
int res = lua_toboolean(L, -1);
*pres = (bool)lua_toboolean(L, -1);
log_normal("res: %d", res);
if (*pres) {
log_normal("*pres: true");
} else {
log_normal("*pres: false");
}
}
break;
case API_TYPE_STRING:
(5-5/5)