MCPcopy Create free account
hub / github.com/ZDoom/Raze / CastS2I

Function CastS2I

source/common/scripting/jit/jit_move.cpp:57–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55static void CastV42S(FString *a, double b, double b1, double b2, double b3) { a->Format("(%.5f, %.5f, %.5f, %.5f)", b, b1, b2, b3); }
56static void CastP2S(FString *a, void *b) { if (b == nullptr) *a = "null"; else a->Format("%p", b); }
57static int CastS2I(FString *b) { return (int)b->ToLong(); }
58static double CastS2F(FString *b) { return b->ToDouble(); }
59static int CastS2N(FString *b) { return b->Len() == 0 ? NAME_None : FName(*b).GetIndex(); }
60static void CastN2S(FString *a, int b) { FName name = FName(ENamedName(b)); *a = name.IsValidName() ? name.GetChars() : ""; }

Callers

nothing calls this directly

Calls 1

ToLongMethod · 0.80

Tested by

no test coverage detected