MCPcopy Create free account
hub / github.com/WheretIB/nullc / GetResult

Method GetResult

NULLC/Executor_X86.cpp:1667–1687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1665}
1666
1667const char* ExecutorX86::GetResult()
1668{
1669 long long combined = (long long)(((unsigned long long)(unsigned)NULLC::runResult << 32ull) + (unsigned long long)(unsigned)NULLC::runResult2);
1670
1671 switch(NULLC::runResultType)
1672 {
1673 case OTYPE_DOUBLE:
1674 SafeSprintf(execResult, 64, "%f", *(double*)(&combined));
1675 break;
1676 case OTYPE_LONG:
1677 SafeSprintf(execResult, 64, "%lldL", combined);
1678 break;
1679 case OTYPE_INT:
1680 SafeSprintf(execResult, 64, "%d", NULLC::runResult);
1681 break;
1682 default:
1683 SafeSprintf(execResult, 64, "no return value");
1684 break;
1685 }
1686 return execResult;
1687}
1688int ExecutorX86::GetResultInt()
1689{
1690 assert(NULLC::runResultType == OTYPE_INT);

Callers

nothing calls this directly

Calls 1

SafeSprintfFunction · 0.70

Tested by

no test coverage detected