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

Method GetResult

NULLC/Executor_LLVM.cpp:351–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351const char* ExecutorLLVM::GetResult()
352{
353 switch(llvmReturnedType)
354 {
355 case LLVM_DOUBLE:
356 SafeSprintf(execResult, 64, "%f", llvmReturnedDouble);
357 break;
358 case LLVM_LONG:
359 SafeSprintf(execResult, 64, "%lldL", llvmReturnedLong);
360 break;
361 case LLVM_INT:
362 SafeSprintf(execResult, 64, "%d", llvmReturnedInt);
363 break;
364 default:
365 SafeSprintf(execResult, 64, "no return value");
366 break;
367 }
368 return execResult;
369}
370
371int ExecutorLLVM::GetResultInt()
372{

Callers

nothing calls this directly

Calls 1

SafeSprintfFunction · 0.70

Tested by

no test coverage detected