Bug #2063 » BoolReturnLog.patch
| 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:
|
||
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »