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

Method GetInteger

NULLC/SyntaxTree.h:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 COMPILE_LLVM(virtual void CompileLLVM());
206
207 int GetInteger()
208 {
209 if(typeInfo == typeLong)
210 return (int)num.integer64;
211 else if(typeInfo == typeDouble || typeInfo == typeFloat)
212 return (int)num.real;
213 return num.integer;
214 }
215 long long GetLong()
216 {
217 if(typeInfo == typeLong)

Callers 13

NodeArrayIndexMethod · 0.80
AddNegateNodeFunction · 0.80
AddLogNotNodeFunction · 0.80
AddBitNotNodeFunction · 0.80
AddBinaryCommandNodeFunction · 0.80
AddBreakNodeFunction · 0.80
AddContinueNodeFunction · 0.80
AddArrayIndexNodeFunction · 0.80
OptimizeIfElseFunction · 0.80
TranslateToCMethod · 0.80
GetArrayTypeMethod · 0.80
ParseIfExprFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected