MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / toInt

Method toInt

include/cpp/CppInt32__.h:29–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 static inline CppInt32__ make(int a,int b) { return CppInt32__( (a<<16) | b ); }
28 static inline CppInt32__ ofInt(int a) { return CppInt32__( a ); }
29 static inline int toInt(CppInt32__ a) { __hxcpp_check_overflow(a); return a.mValue; }
30 static inline int toNativeInt(CppInt32__ a) { return a.mValue; }
31 static inline CppInt32__ add(CppInt32__ a,CppInt32__ b) { return CppInt32__( a.mValue + b.mValue ); }
32 static inline CppInt32__ sub(CppInt32__ a,CppInt32__ b) { return CppInt32__( a.mValue - b.mValue ); }

Callers

nothing calls this directly

Calls 1

__hxcpp_check_overflowFunction · 0.85

Tested by

no test coverage detected