* Generic closure to compare two UScriptStructs */
| 1759 | * Generic closure to compare two UScriptStructs |
| 1760 | */ |
| 1761 | int32 ScriptStruct_Compare(lua_State *L) |
| 1762 | { |
| 1763 | FClassDesc *ClassDesc = ScriptStruct_CheckParam(L); |
| 1764 | if (!ClassDesc) |
| 1765 | { |
| 1766 | return 0; |
| 1767 | } |
| 1768 | |
| 1769 | UScriptStruct *ScriptStruct = ClassDesc->AsScriptStruct(); |
| 1770 | |
| 1771 | void *A = GetCppInstanceFast(L, 1); |
| 1772 | void *B = GetCppInstanceFast(L, 2); |
| 1773 | bool bResult = A && B ? ScriptStruct->CompareScriptStruct(A, B, /*PPF_None*/0) : false; |
| 1774 | lua_pushboolean(L, bResult); |
| 1775 | return 1; |
| 1776 | } |
nothing calls this directly
no test coverage detected